forked from qmlcode/qml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
62 lines (52 loc) · 1.32 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
language: python
sudo: required
dist: trusty
group: edge
deploy:
provider: pages
# local_dir: ${TRAVIS_BUILD_DIR}/docs/build/html
local_dir: /docs/build/html
skip_cleanup: true
repo: qmlcode/qmlcode.github.io
target_branch: master
github_token: ${GH_TOKEN} # Set in travis-ci.org dashboard
on:
branch: master
condition: ${TRAVIS_PYTHON_VERSION} = "2.7"
python:
- "2.7"
- "3.5"
- "3.6"
before_install:
- sudo apt-get update -qq
install:
- sudo apt-get install -qq gcc gfortran libblas-dev liblapack-dev
- sudo apt-get install -qq gcc-4.8 gfortran-4.8
- |
if [ ${TRAVIS_PYTHON_VERSION:0:1} = 3 ]; then
sudo apt-get install python3-numpy
pip3 install scipy
python3 setup.py build
python3 setup.py install
pip3 install sphinx
pip3 install sphinx-rtd-theme
cd ${TRAVIS_BUILD_DIR}/docs
make html
elif [ ${TRAVIS_PYTHON_VERSION} = "2.7" ]; then
sudo apt-get install python-numpy
pip2 install scipy
python2 setup.py build
python2 setup.py install
pip2 install sphinx
pip2 install sphinx-rtd-theme
cd ${TRAVIS_BUILD_DIR}/docs
make html
else
echo "ERROR: Unknown Python version."
fi
before_script:
- cd ${TRAVIS_BUILD_DIR}/tests/
script:
- nosetests -v
notifications:
email: false