-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitlab-ci.yml
147 lines (128 loc) · 3.19 KB
/
.gitlab-ci.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
image: ubuntu:latest
before_script:
- source ENV/bin/activate
stages:
- build
- lint
- pages
- test
build:
stage: build
artifacts:
untracked: true
before_script:
# Overwrites the global before_script at the top to create the environment
- python3 -m venv ENV
- source ENV/bin/activate
- python -V
- pip install --upgrade pip
- pip install -Ur requirements.txt
script:
# Pull chromedriver based on version of googlechrome binary (needs to change
# to remain compliant)
- echo "Pulling chromedriver version -- $(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE_`expr substr "$(google-chrome --version)" 15 9`)"
- wget "https://chromedriver.storage.googleapis.com/$(curl https://chromedriver.storage.googleapis.com/LATEST_RELEASE_`expr substr "$(google-chrome --version)" 15 9`)/chromedriver_linux64.zip"
- unzip -d ENV/bin chromedriver_linux64.zip
retry: 2
lint:
stage: lint
dependencies:
- build
script:
- pylint demodocusfw/ --rcfile .pylintrc --exit-zero
pages:
stage: pages
dependencies:
- build
script:
- make
- cp -r build/site public
only:
- master
artifacts:
paths:
- public
test_dom_manipulations:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/dom_manipulations.py
when: always
test_template:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/test_template.py
when: always
test_compare:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/compare.py
when: always
test_reachable:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/reachable.py
when: always
test_selenium_integration:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/selenium_integration.py
when: always
test_web_access_chrome:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/test_web_access_chrome.py
when: always
test_event_tracking:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/event_tracking.py
when: always
test_animation:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/animation.py
when: always
test_crawler:
stage: test
dependencies:
- build
script: DEM_RUN_EXTENDED=False python -m unittest demodocusfw/tests/test_crawler.py
when: always
test_keyboard_crawl:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/keyboard_crawl.py
when: always
test_crawl_graph:
stage: test
dependencies:
- build
script: DEM_RUN_EXTENDED=False python -m unittest demodocusfw/tests/crawl_graph.py
when: always
test_reduced_crawl:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/reduced_crawl.py
when: always
test_analysis:
stage: test
dependencies:
- build
script: DEM_RUN_EXTENDED=False python -m unittest demodocusfw/tests/test_analysis.py
when: always
test_keyboard_eval:
stage: test
dependencies:
- build
script: python -m unittest demodocusfw/tests/keyboard_eval.py
when: always