-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
46 lines (40 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
sudo: false
language: python
services:
- xvfb
notifications:
slack: nmgrl:ols00MOM4n3EimDpMiluJIyF
email:
on_failure: change
python:
- 3.7
env:
# Default values for common packages, override as needed
global:
- PYTHON=3.7
before_install:
- export TZ=America/Denver
# adapted from statsmodels travis file https://github.com/statsmodels/statsmodels/blob/master/.travis.yml
# setup anaconda
- wget http://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
# - conda update --yes --quiet conda
# Fix for headless TravisCI
#- "export DISPLAY=:99.0"
#- if [ "${TRAVIS_OS_NAME}" = "linux" ]; then sh -e /etc/init.d/xvfb start; fi
#- if [ "${TRAVIS_OS_NAME}" = "osx" ]; then ( sudo Xvfb :99 -ac -screen 0 1024x768x8; echo ok )& fi
#- sleep 3 # give xvfb some time to start
install:
# - conda create --yes --quiet -n pychron-test ${PKGS} ${OPTIONAL}
- conda create --yes --quiet -n pychron-test python=${PYTHON}
- source activate pychron-test
- conda config --add channels conda-forge
- conda config --set channel_priority strict
#- conda install --yes statsmodels PyYAML traits traitsui xlrd xlwt lxml apptools swig coverage
- conda install --yes pyyaml yaml traits traitsui lxml coverage six numpy scipy uncertainties statsmodels codecov xlrd xlwt pyface
# - pip install codecov
script: coverage run setup.py test
after_success:
- codecov