forked from sphinx-gallery/sphinx-gallery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (65 loc) · 1.94 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
language: python
sudo: false
addons:
apt:
packages:
- xvfb # For mayavi headless
virtualenv:
system_site_packages: true
matrix:
include:
- os: linux
env: DISTRIB="ubuntu" PYTHON_VERSION="2.7"
addons:
apt:
packages:
- python-numpy
- python-matplotlib
- python-scipy
- python-pip
- python-coverage
- cython
- python-pandas
# This environment tests is for mayavi
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="2.7" INSTALL_MAYAVI="true"
# This environment tests the Python 3 versions
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="3.4"
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="3.5"
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="3.6"
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="2.7" LOCALE=C
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="3.6" LOCALE=C
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="2.7" SPHINX_VERSION="dev"
if: type = cron
- os: linux
env: DISTRIB="conda" PYTHON_VERSION="3.6" SPHINX_VERSION="dev"
if: type = cron
before_install:
# Make sure that things work even if the locale is set to C (which
# effectively means ASCII). Some of the input rst files have unicode
# characters and we need to deal with this gracefully.
- |
if [[ $LOCALE == C ]]; then
export LC_CTYPE=C
export LC_ALL=C
export LANG=C
fi
install:
- source continuous_integration/travis/install.sh
# To test the mayavi environment follow the instructions at
# https://docs.travis-ci.com/user/gui-and-headless-browsers/#Using-xvfb-to-Run-Tests-That-Require-a-GUI
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
script:
- bash continuous_integration/travis/test_script.sh
after_success:
- pip install codecov
- codecov