-
Notifications
You must be signed in to change notification settings - Fork 565
/
.travis.yml
42 lines (31 loc) · 1.04 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
language: python
python: 3.6
dist: trusty
sudo: true
env:
- TOXENV=py36 SOLC_VERSION=0.4.24
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
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