Add .travis.yml and update pipelines

This commit is contained in:
antoniaklja 2019-01-10 22:24:03 +01:00
parent ec6f20a979
commit 60a7079df3
4 changed files with 43 additions and 1 deletions

25
.travis.yml Normal file
View File

@ -0,0 +1,25 @@
language: go
sudo: false
go:
- 1.10.x
- 1.11.x
- master
matrix:
fast_finish: true
allow_failures:
- go: master
before_install:
- go get golang.org/x/lint/golint
- go get honnef.co/go/tools/cmd/staticcheck
- go get -u github.com/golang/dep/cmd/dep
- make dep
script:
- make verify
cache:
directories:
- vendor

View File

@ -33,7 +33,7 @@ Some of the problems we want to solve:
2. [Getting Started][getting_started]
3. [How it works][how_it_works]
4. [Security][security]
4. [Developer Guide][developer_guide]
5. [Developer Guide][developer_guide]
## Contribution

View File

@ -3,6 +3,17 @@
pipelineJob('build-jenkins-operator') {
displayName('Build jenkins-operator')
logRotator {
numToKeep(10)
daysToKeep(30)
}
configure { project ->
project / 'properties' / 'org.jenkinsci.plugins.workflow.job.properties.DurabilityHintJobProperty' {
hint('PERFORMANCE_OPTIMIZED')
}
}
definition {
cpsScm {
scm {

View File

@ -22,6 +22,12 @@ podTemplate(label: label,
}
}
stage('Test') {
container('go') {
sh 'make test'
}
}
stage('Build') {
container('go') {
sh 'make build'