-
Notifications
You must be signed in to change notification settings - Fork 81
/
.travis.yml
32 lines (31 loc) · 981 Bytes
/
.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
sudo: false
language: python
env:
- PYTHON_VERSION=2.7
addons:
apt:
packages:
- texlive-latex-extra
before_install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda3/bin:$PATH
- export AG_TESTING='True'
- export AG_CPU_COUNT=1
install:
- conda create --yes -n env_name python=$PYTHON_VERSION --file conda_requirements.txt
- source activate env_name
- conda install -y "setuptools<20.7.0"
- pip install -r pip_requirements.txt
- pip install -e . --no-deps
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # gives time to start
script:
- nosetests --with-doctest
- flake8 americangut/*.py
- flake8 scripts/*.py scripts/ag
- ipymd --from markdown --to notebook ipynb/primary-processing/*.md
- travis_wait 30 ./scripts/run_the_ipys.sh ipynb/primary-processing/