forked from axe-selenium-python/axe-selenium-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
65 lines (63 loc) · 1.19 KB
/
Jenkinsfile
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
#!/usr/bin/env groovy
/** Desired capabilities */
def capabilities = [
browserName: 'Firefox',
version: '59.0',
platform: 'Windows 10'
]
pipeline {
agent any
libraries {
lib('fxtest@1.9')
}
triggers {
pollSCM('H/5 * * * *')
cron('H H * * *')
}
options {
ansiColor('xterm')
timestamps()
timeout(time: 30, unit: 'MINUTES')
}
environment {
PYTEST_ADDOPTS =
"--tb=short " +
"--color=yes " +
"--driver=SauceLabs " +
"--variables=capabilities.json"
PULSE = credentials('PULSE')
SAUCELABS = credentials('SAUCELABS')
}
stages {
stage('Lint') {
agent {
dockerfile true
}
steps {
sh "tox -e flake8"
}
}
stage('Test') {
parallel {
stage('py36') {
agent {
dockerfile true
}
steps {
writeCapabilities(capabilities, 'capabilities.json')
sh "tox -e py36"
}
}
stage('py27') {
agent {
dockerfile true
}
steps {
writeCapabilities(capabilities, 'capabilities.json')
sh "tox -e py27"
}
}
}
}
}
}