-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
101 lines (92 loc) · 2.17 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
language: python
os: linux
dist: xenial
cache:
- pip
- directories:
- $HOME/.pyenv/versions/
install:
- pip install -U tox 'virtualenv>19'
script:
- tox
after_success:
- bash <(curl -s https://codecov.io/bash) -f coverage.xml
jobs:
include:
# Linux tests:
- stage: test
env: TOXENV=py36
python: 3.6
- stage: test
env: TOXENV=py37
python: 3.7
# OSX tests:
- stage: test
os: osx
env: TOXENV=py36
before_install:
- ulimit -n
- ulimit -n 4096
- eval "$(pyenv init -)"
- pyenv install -l
- pyenv install --skip-existing 3.6.9
- pyenv global 3.6.9
- pyenv rehash
- python --version
- python3 --version
- pip3 --version
- pip --version
language: shell
- stage: test
os: osx
env: TOXENV=py37
before_install:
- ulimit -n
- ulimit -n 4096
- eval "$(pyenv init -)"
- pyenv install -l
- pyenv install --skip-existing 3.7.5
- pyenv global 3.7.5
- pyenv rehash
- python --version
- python3 --version
- pip3 --version
- pip --version
language: shell
- stage: test
env: TOXENV=numba_coverage
python: 3.7
- stage: test
env: TOXENV=mypy
python: 3.7
- stage: test
env: TOXENV=flake8
python: 3.7
- stage: test
env: TOXENV=qa
python: 3.7
- stage: test
env: TOXENV=docs-check
python: 3.7
install:
- pip install tox
- sudo apt-get install -y pandoc
- stage: packaging
env: TOXENV=docs-deploy
python: 3.7
install:
- pip install -U tox 'virtualenv>19'
- sudo apt-get install -y pandoc
- stage: packaging
python: 3.7
install:
- pip install -r scripts/requirements.txt
script:
- python scripts/release upload --pypi-test-user=libertem_bot --pypi-user=libertem_bot --no-dry-run
allow_failures:
- env: TOXENV=mypy
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/
- /^v[0-9]+\.[0-9]+\.[0-9]+/