forked from Zilliqa/Zilliqa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (31 loc) · 885 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: generic
cache:
directories:
- $HOME/.ccache/
# multiplied by platform
os:
- osx
- linux
# multiplied by BUILD_COMMAND
env:
matrix:
- BUILD_COMMAND="./scripts/ci_build.sh"
- BUILD_COMMAND="./scripts/ci_build.sh lookup"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker pull ubuntu:16.04;
docker run -d -v $(pwd):/zilliqa -v $HOME/.ccache:/root/.ccache -w /zilliqa --name ci ubuntu:16.04 tail -f /dev/null;
fi
install:
# note: use option '-t' for 'docker exec' to enable colored output
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker exec -e CI="true" -t ci /bin/sh -c "./scripts/ci_install_deps.sh";
else
./scripts/ci_install_deps.sh;
fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker exec -t ci /bin/sh -c "$BUILD_COMMAND";
else
$BUILD_COMMAND;
fi