-
Notifications
You must be signed in to change notification settings - Fork 17
/
.travis.yml
110 lines (110 loc) · 5.62 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
sudo: false
os: linux
language: python
env:
global:
- ON_TRAVIS=1
- APPVEYOR_ACCOUNT=djpugh
- APPVEYOR_SLUG=MTfit
- secure: X9w4qCkm5g+XqRwUp3BXtVJcgAxoQW20+9flUSTRfv583tNdd98Av0pZGoP1hivi8HxFwZLYT0uw8dyYhVToN7BPZHjwhrXwv1OHZBAmCNwZwdbi0jvfbrtLX0NejqbyEgwF6HmxrnRxkrH97yNKciF+LBZZAuZd0W2g1sisj+VAAn0VYeSJvmPVNoQovFLQVb+MSWZ22CN+sOmpajPp2Aq0IKW8+dnwLqY/0v+IjMHPjZikXBWFZo7joxM5FA/143kfwHcu71Xk4JsnYAsZFXB7vwxmRWeV21GjbmPAZrFV2WfZirV6GpN7DndNTfpq6ZZ9PrUpDnUi0wjoTWv28aHpP1j0gvkawaW3dAf/St1QT0KHwieELh91GXTarhybNZ2B7fBZBssEEkQG8NaRvkrKzPKoP7nD+zZGNfK/BBfREuBcs0p/acSle4nIJxOFxrrRnM3053LPnzn6YPuP5fL0Fozw8DggOkzdBuBmPP+4l6qNa/U1k9KwVgPQK9Cph7Zce0sz8YOGPbQKlZ3LZvMWTCZRlmiRtVS7nNndWsxNw/18Ezbi6qET1ia/+KH3hZpjiCVcQTjsHE6m7QGyoS/7XV0DN8kJyG6ChuBWMrQoR6qxxVxOQ13Soltdve9xghYjUv6/hVYWfio51aFzkFzqBxyTt2dOQtdZEo54qv8=
- secure: Ojj4iWp7Cw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aRIFp5jIoYXW/DwhqHQ5YXdZrE4VP8b66SmAaEAKGgAUxPaZGxkI6ApUMqdatqCQ10+XSL/FZqvpaDW0qs2/7fb68p6mKTGJ0Nn7AA1v3wjQ+Q4k01r4Eu16QskPQKtW3tcMpPae0lozExmjvUv93fpNzucZgZu3AX/SQkrvQLseLEZrifmT4HJsXR1OluCWSjrrU6H64JtzsJjxBHdioC3H7lkPFLZ0AX7sXOwxeglSpjJWNg0fY5myj0fzK7/FslUg5ZF+JK0rJusqxb+vL1c59VhsItEQKawZ1L2zZ21MrSaNQbG5eHsR2JpyHnLDq8GYXRO/c4fRErHQmcVxY6J8VfZtQoliR6oVUUdw2OLMwgn9UbhoQjTDXQxnV9ytfTHZD8vZ1lbvyYTFb4VhbU2N5DGj/BIIy/Hd+0aA3wJG6MKqVnQ5P0QEVOM0v8aU9YHtKXS8JTv7YY+U1XLKT5xc5w++feKRbxYOi1iRMVck1LNRblcxm9tK4a4iWSK0nZe9HUQk8xY8PXtJo6VgWDqocTlXyFvWsvp3gwHAv3ebNcKJ6vyc=
python:
- 2.7
- 3.5
- 3.6
branches:
except:
- gh-pages
install:
- |
python ci/environment.py
pip install cython requests
python setup.py build_ext
stages:
- name: lint
- name: test
- name: examples-test
- name: build
if: tag IS present
- name: gh-pages
if: tag =~ ^\d+\.\d+\.\d+$
script: skip
jobs:
fast_finish: true
include:
- stage: lint
script: python ci/lint.py
python: 2.7
name: Lint
- stage: lint
script: python ci/lint.py
python: 3.5
name: Lint
- stage: lint
script: python ci/lint.py
python: 3.6
name: Lint
- stage: test
script: tox -e test-py27
python: 2.7
name: Unit Tests
- stage: test
script: tox -e test-py35
python: 3.5
name: Unit Tests
- stage: test
script: tox -e test-py36
python: 3.6
name: Unit Tests
- stage: test
script: python ci/travis_appveyor_build.py
python: 3.6
name: Unit Tests (Windows)
if: branch in (master, develop) OR tag IS present
- stage: examples-test
script: tox -e examples-py27
python: 2.7
name: Example Tests
- stage: examples-test
script: tox -e examples-py35
python: 3.5
name: Example Tests
- stage: examples-test
script: tox -e examples-py36
python: 3.6
name: Example Tests
- stage: build
python: 3.6
name: Build
before_deploy: python ci/get_appveyor_wheels.py
deploy:
- provider: pypi
user: "$PYPI_USERNAME"
password: "$PYPI_PW"
distributions: sdist
skip-cleanup: true
on:
tags: true
- provider: releases
file_glob: true
file: dist/*
api-key: "$GH_PUSH"
skip-cleanup: false
on:
tags: true
- stage: gh-pages
before_install:
- sudo apt-get update
- sudo apt-get install -qy texlive-latex-base texlive-latex-extra texlive-fonts-recommended
texlive-fonts-extra
script:
- echo "Adding GitHub remote"
- git remote add origin-pages https://${GH_PUSH}@github.com/djpugh/MTfit.git >
/dev/null 2>&1
- git fetch origin-pages gh-pages:gh-pages
- tox -e gh-pages
python: 3.6
name: Build GitHub pages