forked from Pierre-Sassoulas/django-survey
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
54 lines (52 loc) · 1.9 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
language: python
linux_before_install: &linuxbefore
- sudo apt-get install -y texlive-latex-base pgf texlive-pictures texlive-latex-extra texlive-xetex
- sudo apt-get install -y libblas-dev liblapack-dev libatlas-base-dev gfortran
jobs:
fast_finish: true
include:
- name: "Python 3.6 on Xenial Linux"
dist: xenial
before_install: *linuxbefore
python: 3.6
- name: "Python 3.7 on Xenial Linux"
dist: xenial
before_install: *linuxbefore
python: 3.7
- name: "Python 3.8 on Xenial Linux"
dist: xenial
before_install: *linuxbefore
python: 3.8
- name: "Python 3.7.4 on macOS"
os: osx
osx_image: xcode11.2 # Python 3.7.4 running on macOS 10.14.4
language: shell # 'language: python' is an error on Travis CI macOS
before_install:
- brew cask install mactex
- brew install gettext
- brew link gettext --force
- name: "Python 3.8.0 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.8.0
- choco install miktex.portable
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
allow_failures:
- name: "Python 3.8.0 on Windows"
os: windows # Windows 10.0.17134 N/A Build 17134
language: shell # 'language: python' is an error on Travis CI Windows
before_install:
- choco install python --version 3.8.0
- choco install miktex.portable
- python -m pip install --upgrade pip
env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
install:
- pip3 install --editable ".[dev]"
script:
- python3 manage.py test
after_success:
- coverage run --source=survey --omit=survey/migrations/* ./manage.py test
- coverage html
- coveralls