Skip to content

Commit

Permalink
[travis] Add travis_node_checker.sh
Browse files Browse the repository at this point in the history
* Remove slack notification
* Parallelize tests
  • Loading branch information
Daniel-VDM committed Jul 18, 2020
1 parent b06c91c commit 04860cc
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
21 changes: 17 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,21 @@
sudo: required
services:
- docker
cache:
directories:
- docker_images
before_cache:
- docker save -o docker_images/images.tar $(docker images -a -q)
before_install:
- docker load -i docker_images/images.tar || true
language: go
go:
- 1.14
go_import_path: github.com/harmony-one/harmony
env:
- TEST="go build -v ./..."
- TEST="./scripts/travis_checker.sh"
- TEST="./scripts/travis_node_checker.sh"
install:
- export GO111MODULE=on
- export GOPATH=$HOME/gopath
Expand All @@ -21,11 +35,10 @@ install:
- cd ../harmony
- go get -v ./...
- scripts/install_build_tools.sh
- chmod +x scripts/travis_checker.sh
- chmod +x scripts/travis_node_checker.sh
script:
- go build -v ./...
- ./scripts/travis_checker.sh
notifications:
slack: harmonyone:gggCd1QQopsQAW8JYgBWiH7M
- ${TEST}
after_success:
- wget https://raw.githubusercontent.com/DiscordHooks/travis-ci-discord-webhook/master/send.sh
- chmod +x send.sh
Expand Down
7 changes: 7 additions & 0 deletions scripts/travis_node_checker.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -e
OS=$(uname -s)
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)"
echo "$(pwd)"
docker pull harmonyone/localnet-test
docker run -v "$DIR/../:/go/src/github.com/harmony-one/harmony" harmonyone/localnet-test -n

0 comments on commit 04860cc

Please sign in to comment.