Skip to content

Commit fc1fea5

Browse files
tests(ci): use jenkins for CI testing (#31)
1 parent 3da7b09 commit fc1fea5

3 files changed

Lines changed: 33 additions & 29 deletions

File tree

.travis.yml

Lines changed: 0 additions & 14 deletions
This file was deleted.

Jenkinsfile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
node('windows') {
2+
def gopath = pwd() + "\\gopath"
3+
env.GOPATH = gopath
4+
def workdir = gopath + "\\src\\github.com\\deis\\controller-sdk-go"
5+
6+
def pscmd = { String cmd ->
7+
"powershell -NoProfile -ExecutionPolicy Bypass -Command \"${cmd}\""
8+
}
9+
10+
dir(workdir) {
11+
stage 'Checkout Windows'
12+
checkout scm
13+
stage 'Install Windows'
14+
bat pscmd('.\\make bootstrap')
15+
stage 'Test Windows'
16+
bat pscmd('.\\make test')
17+
}
18+
}
19+
20+
node('linux') {
21+
def gopath = pwd() + "/gopath"
22+
env.GOPATH = gopath
23+
def workdir = gopath + "/src/github.com/deis/controller-sdk-go"
24+
25+
dir(workdir) {
26+
stage 'Checkout Linux'
27+
checkout scm
28+
stage 'Install Linux'
29+
sh 'make bootstrap'
30+
stage 'Test Linux'
31+
sh 'make test'
32+
}
33+
}

appveyor.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)