forked from pygae/clifford
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (76 loc) · 1.97 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
73
74
75
76
77
78
79
80
81
82
# there is nothing special about this key, it's just ignored by travis
x-clifford-templates:
lint_job: &lint_job
install:
- pip install flake8
- python setup.py install
script: python -m flake8 clifford
test_job: &test_job
install:
- |
if [[ "${CONDA}" == "true" ]]; then
PYTHON_VERSION="$TRAVIS_PYTHON_VERSION" CONDA_INSTALLER_OS="${TRAVIS_OS_NAME:-linux}" source travis_install_conda.sh \
numpy \
scipy \
numba \
pip \
h5py;
conda install -c conda-forge sparse;
conda install -c numba numba>=0.45.1;
fi
# always install with pip, conda has too old a version
- pip install pytest pytest-cov
- python setup.py install
- pip install codecov
script:
- |
pytest clifford/test \
--doctest-modules \
--junitxml=junit/test-results.xml \
--durations=25 \
--cov=clifford \
--cov-branch
after_success:
- codecov
deploy_job: &deploy_job
install: skip
script: skip
deploy:
provider: pypi
user: arsenovic
distributions: "sdist bdist_wheel"
password:
secure: ieUd3c2DjrZQE+3FlqmU5FQObNWIDiL9E9G6aLs0ksEKAi5Z1t7fefXic1XHsHOZZYteycef/lZkUYg3ijwfZg2xzELeTdLef29GgUrxYuGL4MJ706UFj450Xlv9l1oH5D32OEKT2EwfxMqdrw39+N8zD5ehVyQbYM6Z3lwtCvg=
on:
tags: true
language: python
matrix:
include:
- os: linux
python: '3.8'
stage: Lint
<<: *lint_job
- os: linux
python: '3.5'
env: CONDA=false
stage: Test
<<: *test_job
- os: linux
python: '3.8'
env: CONDA=false
stage: Test
<<: *test_job
- os: linux
python: '3.5'
env: CONDA=true
stage: Test
<<: *test_job
- os: linux
python: '3.8'
env: CONDA=true
stage: Test
<<: *test_job
- os: linux
python: '3.8'
stage: Deploy
<<: *deploy_job