-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
96 lines (80 loc) · 2.26 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
language: python
python: 3.7
dist: xenial
services:
- xvfb
cache: pip
installation_on_windows: &installation_on_windows
before_install:
- choco install python --version 3.7.4
- python --version
- python -m pip install --upgrade pip
- pip3 install --upgrade pytest ordered-set
install: pip --version # Avoid install with pip install -r requirements.txt
script: echo "Skip global script..."
stages:
- Static Analisys
- Test
- Test GUI
- Integration Test
- Coverage
jobs:
include:
- stage: Static Analisys
name: pycodestyle
before_install:
- pip install pip --upgrade
- pip install pycodestyle
script: make pep8
- stage: Static Analisys
name: flake8
before_install:
- pip install pip --upgrade
- pip install flake8
script: make flake8
- stage: Test
name: unit test
before_install:
- pip install pip --upgrade
- pip install pytest pytest-cov ordered-set
script: make test
- stage: Test
name: unit test on windows
os: windows
language: shell
<<: *installation_on_windows
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
script: pytest tests -m "not integration" --ignore=tests/gui
- stage: Test GUI
addons:
apt:
packages:
- x11-utils
- libxkbcommon-x11-0
name: unit test user interface
before_install:
- pip install pyqt5 pytest pytest-qt ordered-set
script: make test-gui
if: type = pull_request
- stage: Integration Test
name: integration test
before_install:
- pip install pip --upgrade
- pip install pytest ordered-set
before_script: make clean
script: make test-integration
if: type = pull_request
- stage: Integration Test
name: integration test on Windows
os: windows
language: shell
<<: *installation_on_windows
env: PATH=/c/Python37:/c/Python37/Scripts:$PATH
script: pytest tests -m integration --ignore=tests/gui
if: type = pull_request
- stage: Coverage
name: coverage
before_install:
- pip install pip --upgrade
- pip install pytest pytest-cov coveralls ordered-set
script: coveralls