forked from MTgeophysics/mtpy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
79 lines (68 loc) · 2.16 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
dist: trusty
sudo: required # use VM instead of docker
language: python
python:
- "2.7"
# does not have headers provided, please ask https://launchpad.net/~pypy/+archive/ppa
# maintainers to fix their pypy-dev package.
# - "pypy"
cache:
pip: true # make cache for pip dependencies
directories:
- builds # cached files
install: true # skip default install step which would be called before the prepare cache stage
env:
global:
- COVERALLS_PARALLEL=true
matrix:
# - MATPLOTLIB_VERSION=2.1.0 QT_VERSION=4
- MATPLOTLIB_VERSION=2.0.2 QT_VERSION=5
- MATPLOTLIB_VERSION=2.1.0 QT_VERSION=5
# - MATPLOTLIB_VERSION=2.0.2 QT_VERSION=4
- MATPLOTLIB_VERSION=1.5.3 QT_VERSION=5
stages:
- name: prepare cache
- test
- name: GUI Test
jobs:
include:
- stage: prepare cache # run saperate job to build dependencies to avoid 50 min timeout on travis
script: true # place holder, the before_Script will run anyway
env:
- MATPLOTLIB_VERSION=2.0.2 QT_VERSION=5
- stage: prepare cache
script: true
env:
- MATPLOTLIB_VERSION=2.1.0 QT_VERSION=5
# - stage: prepare cache
# script: true
# env:
# - MATPLOTLIB_VERSION=2.0.2 QT_VERSION=4
- stage: prepare cache
script: true
env:
- MATPLOTLIB_VERSION=1.5.3 QT_VERSION=5
# - stage: test
- stage: GUI Test
script: . ./bin/travis-test-gui.sh
env:
- MATPLOTLIB_VERSION=2.0.2 QT_VERSION=5
# - stage: GUI Test
# script: . ./bin/travis-test-gui.sh
# env:
# - MATPLOTLIB_VERSION=2.0.2 QT_VERSION=4
# - stage: deploy
before_script:
- chmod -vR +x ./bin/* && . ./bin/travis-setup-env.sh
script: # testing stages, will run only in testing stages
- MTPY_TEST_COMPARE_IMAGE=False py.test -v -n4 --dist=loadscope --cov=mtpy --cov-report= tests --ignore=tests/SmartMT
after_success:
- coveralls
matrix:
fast_finish: true
allow_failures:
- env: MATPLOTLIB_VERSION=2.1.0 QT_VERSION=5
# - env: MATPLOTLIB_VERSION=2.0.2 QT_VERSION=4
- env: MATPLOTLIB_VERSION=1.5.3 QT_VERSION=5
notifications:
webhooks: https://coveralls.io/webhook?repo_token=GsdWzB3YUFjVVGCESQode5GgbnUINLZr2