This repository has been archived by the owner on Feb 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy path.travis.yml
58 lines (50 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
47
48
49
50
51
52
53
54
55
56
57
58
language: python
matrix:
include:
- python: 2.7
before_install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "3.6" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-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;
conda create -y -q -n freecad_cq3 -c cadquery -c conda-forge freecad=0.17 python=3.6 pyparsing conda mock coverage codecov;
source ~/miniconda/bin/activate freecad_cq3;
else
sudo apt-get update -qq;
sudo apt-get install -y freecad;
pip install -r requirements-dev.txt;
pip install travis-sphinx;
pip install sphinx_rtd_theme;
pip install readme_renderer;
fi
install:
- python setup.py install;
script:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
python setup.py check -r -s;
fi
- coverage run runtests.py
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
travis-sphinx build --nowarn --source=doc;
fi
after_success:
- coverage xml
- codecov -X gcov --file coverage.xml
after_script:
- coveralls
- travis-sphinx deploy
branches:
except:
- pythonocc
- 2_0_branch
deploy:
provider: pypi
user: dcowden
password:
secure: aP02wBbry1j3hYG/w++siF1lk26teuRQlPAx1c+ec8fxUw+bECa2HbPQHcIvSXB5N6nc6P3L9LjHt9ktm+Dn6FLJu3qWYNGAZx9PTn24ug0iAmB+JyNrsET3nK6WUKR1XpBqvjKgdpukd1Hknh2FSzYoyUvFWH9/CovITCFN3jo=
on:
tags: true