-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
54 lines (47 loc) · 1.48 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
51
52
53
54
language : generic
cache : false
matrix :
include :
- os : linux
env :
- PY_MAJOR_MINOR="3.6"
- INSTALL_FILE="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
- os : linux
env :
- PY_MAJOR_MINOR="3.7"
- INSTALL_FILE="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
- os : linux
env :
- PY_MAJOR_MINOR="3.8"
- INSTALL_FILE="https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh"
addons:
apt:
packages:
- wget
homebrew:
packages:
- wget
before_install :
- wget $INSTALL_FILE -O miniconda.sh;
- 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 update -q conda
- conda info -a
- conda create -q -n test-environment python=$PY_MAJOR_MINOR scipy
- source activate test-environment
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then export CC=clang;export CXX=clang++;export CFLAGS='-stdlib=libc++'; fi
install :
- pip install -qqq pytest pytest-cov codecov
- pip install -qqq .[all]
- travis_wait python scripts/fairseq_helper.py
script : py.test --cov=niacin
after_success :
- codecov
notifications :
email :
recipients :
- dillon.niederhut@gmail.com
on_success : change
on_failure : change