forked from Trusted-AI/adversarial-robustness-toolbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (39 loc) · 1.58 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
dist: trusty
language: python
env:
- KERAS_BACKEND=tensorflow TENSORFLOW_V=1.13.2 KERAS_V=2.2.5
- KERAS_BACKEND=tensorflow TENSORFLOW_V=1.14.0 KERAS_V=2.2.5
- KERAS_BACKEND=tensorflow TENSORFLOW_V=1.15.0 KERAS_V=2.2.5
- KERAS_BACKEND=tensorflow TENSORFLOW_V=2.0.0 KERAS_V=2.3.1
python:
- "3.6"
matrix:
include:
- python: 3.6
env: KERAS_BACKEND=tensorflow TENSORFLOW_V=1.14.0 KERAS_V=2.2.5
script:
- (pycodestyle --max-line-length=120 art || exit 0) && (pylint --disable=C0415,E1136 -rn art || exit 0)
- py.test --pep8 -m pep8
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- sed -i "s/tensorflow/tensorflow==${TENSORFLOW_V}/" test_requirements.txt
- sed -i "s/keras/keras==${KERAS_V}/" test_requirements.txt
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda config --add channels pytorch
- conda update -q conda
- conda info -a
install:
- conda create -q -n test-environment python=$TRAVIS_PYTHON_VERSION --yes --file requirements.txt
- source activate test-environment
- pip install -q -r test_requirements.txt
- pip install pylint pycodestyle
- pip install torch==1.3.1+cpu torchvision==0.4.2+cpu -f https://download.pytorch.org/whl/torch_stable.html
- pip freeze
- conda install libgcc
- export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/travis/miniconda/envs/test-environment/lib
- export PYTHONPATH=".":$PYTHONPATH
script:
- travis_wait 40 ./run_tests.sh