forked from codeplaysoftware/visioncpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
44 lines (37 loc) · 1.26 KB
/
.travis.yml
File metadata and controls
44 lines (37 loc) · 1.26 KB
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
language: python
sudo: true
dist: trusty
python:
- "2.7"
- "3.4"
- "3.5"
install:
- pip install --upgrade pip
- pip install coveralls
- pip install --only-binary=numpy 'numpy>=1.10.4'
- pip install --only-binary=scipy 'scipy>=0.16.1'
- pip install --only-binary=pandas 'pandas>=0.19.0'
- pip install 'Cython==0.23.4'
- cd "$TRAVIS_BUILD_DIR/contrib/python" && pip install -r requirements.txt && cd -
- cd "$TRAVIS_BUILD_DIR/contrib/python" && python ./setup.py install && cd -
branches:
except:
- gh-pages
env:
global:
- GH_REPO: github.com/codeplaysoftware/visioncpp.git
addons:
apt:
packages:
- clang-format-3.6
- doxygen
- graphviz
before_script:
- chmod +x ./scripts/travis_build_docs.sh
- chmod +x ./scripts/travis_deploy_docs.sh
script:
- 'if [ "$TRAVIS_REPO_SLUG" = "codeplaysoftware/visioncpp" ] && [ "$TRAVIS_BRANCH" = "master" ]; then bash ./scripts/travis_build_docs.sh; fi'
- cd "$TRAVIS_BUILD_DIR/contrib/python" && coverage run --source=visioncpp setup.py test && cd -
after_success:
- 'if [ "$TRAVIS_REPO_SLUG" = "codeplaysoftware/visioncpp" ] && [ "$TRAVIS_BRANCH" = "master" ]; then bash ./scripts/travis_deploy_docs.sh; fi'
- cd "$TRAVIS_BUILD_DIR/contrib/python" && coveralls && cd ../../ && cd -