blob: 767db38c3943cd5f1dc389682c431edffe84bea4 (
plain) (
blame)
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
55
56
57
58
59
60
61
62
|
language: python
# Setting sudo to false opts in to Travis-CI container-based builds.
sudo: false
# The apt packages below are needed for sphinx builds, which can no longer
# be installed with sudo apt-get.
addons:
apt:
packages:
- graphviz
- texlive-latex-extra
- dvipng
os:
- linux
python:
- 3.5
env:
global:
# SET DEFAULTS TO AVOID REPEATING IN MOST CASES
- SETUPTOOLS_VERSION=stable
- PIP_INSTALL='pip install'
- INSTALL_OPTIONAL=true
- SETUP_CMD='test'
before_install:
# USE UTF8 ENCODING. SHOULD BE DEFAULT, BUT THIS IS INSURANCE AGAINST
# FUTURE CHANGES
- export PYTHONIOENCODING=UTF8
# http://conda.pydata.org/docs/travis.html#the-travis-yml-file
- wget https://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -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
#CHECK INTERACTIVE MATPLOTLIB BACKENDS
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
install:
- conda create -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
# ADD STSCI ASTROCONDA CHANNEL
- conda config --add channels http://ssb.stsci.edu/astroconda
# RTD deps
- $PIP_INSTALL -r source/rtd-pip-requirements.txt
script:
- python setup.py install
|