Add .travis.yml and update pipelines
This commit is contained in:
parent
ec6f20a979
commit
60a7079df3
|
|
@ -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
|
||||||
|
|
@ -33,7 +33,7 @@ Some of the problems we want to solve:
|
||||||
2. [Getting Started][getting_started]
|
2. [Getting Started][getting_started]
|
||||||
3. [How it works][how_it_works]
|
3. [How it works][how_it_works]
|
||||||
4. [Security][security]
|
4. [Security][security]
|
||||||
4. [Developer Guide][developer_guide]
|
5. [Developer Guide][developer_guide]
|
||||||
|
|
||||||
## Contribution
|
## Contribution
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,17 @@
|
||||||
pipelineJob('build-jenkins-operator') {
|
pipelineJob('build-jenkins-operator') {
|
||||||
displayName('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 {
|
definition {
|
||||||
cpsScm {
|
cpsScm {
|
||||||
scm {
|
scm {
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,12 @@ podTemplate(label: label,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Test') {
|
||||||
|
container('go') {
|
||||||
|
sh 'make test'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
container('go') {
|
container('go') {
|
||||||
sh 'make build'
|
sh 'make build'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue