/
.travis.yml
50 lines (41 loc) · 1.41 KB
/
.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
git:
submodules: true
sudo: false
language: node_js
node_js:
- "10.10.0"
matrix:
include:
- os: osx
osx_image: xcode10
env:
- MATRIX_EVAL="brew update && brew unlink python && brew install protobuf && brew install snappy && brew install lz4"
before_install:
- eval "${MATRIX_EVAL}"
install:
- npm ci
cache:
directories:
- "$HOME/.npm"
before_script:
- npm run setup-bluzelle-js
- npm run setup-bluzelleESR
# create dir, pull latest swarmDB binary, and symlink binary for testing
- mkdir -p daemon-binary
- cd daemon-binary
- |
if [ "$TRAVIS_BRANCH" = "master" ]; then
ARTIFACTORY_REPO=https://bluzelle.jfrog.io/bluzelle/OSX/
LATEST_BLUZELLE_SWARMDB_TARBALL=$(curl ${ARTIFACTORY_REPO} | grep bluzelle-swarmdb | tail -1 | grep -o '"[^"]*"' | tr -d '"')
else
ARTIFACTORY_REPO=https://bluzelle.jfrog.io/bluzelle/osx-dev/
LATEST_BLUZELLE_SWARMDB_TARBALL=$(curl ${ARTIFACTORY_REPO} | grep unstable-bluzelle-swarmdb | tail -1 | grep -o '"[^"]*"' | tr -d '"')
fi
- curl -0 ${ARTIFACTORY_REPO}${LATEST_BLUZELLE_SWARMDB_TARBALL} | tar -zx --strip-components=1
- echo ${LATEST_BLUZELLE_SWARMDB_TARBALL}
- cd ../
- npm run link-daemon ./daemon-binary
script:
- npx ganache-cli --account="0x1f0d511e990ddbfec302e266d62542384f755f6cc6b3161b2e49a2a4e6c4be3d,100000000000000000000" > /dev/null &
- sleep 10
- npm run calibrate-and-run test-target