forked from TokenMarketNet/smart-contracts
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
44 lines (33 loc) · 1.11 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
language: python
python: 3.5
dist: trusty
sudo: true
env:
- TOXENV=py35 SOLC_VERSION=0.4.18
cache:
- pip: true
- directories:
# - $TRAVIS_BUILD_DIR/solc-versions
- $TRAVIS_BUILD_DIR/.tox --recreate
before_install:
- if [ -n "$SOLC_VERSION" ]; then export SOLC_BINARY="$TRAVIS_BUILD_DIR/solc-versions/solc-$SOLC_VERSION/solc"; fi
- if [ -n "$SOLC_VERSION" ]; then export LD_LIBRARY_PATH="$TRAVIS_BUILD_DIR/solc-versions/solc-$SOLC_VERSION"; fi
- if [ -n "$SOLC_VERSION" ]; then sudo apt-get install -y tree unzip; fi
- sudo add-apt-repository -y ppa:ethereum/ethereum
- sudo apt-get update
install:
- if [ ! -e "$SOLC_BINARY" ]; then /.$TRAVIS_BUILD_DIR/install_solc.sh; fi
- travis_retry pip install setuptools --upgrade
- pip install -U tox
before_script:
- if [ -n "$SOLC_BINARY" ]; then $SOLC_BINARY --version; fi
- export PATH=$PATH:`dirname $SOLC_BINARY`
# command to run tests, e.g. python setup.py test
script: tox -e ${TOXENV}
notifications:
webhooks:
urls:
- https://webhooks.gitter.im/e/076ad81483d6aad0f72a
on_success: change
on_failure: always
on_start: never