mirror of
https://github.com/jenkinsci/kubernetes-operator.git
synced 2026-10-07 16:41:16 +02:00
Add .travis.yml and update pipelines
This commit is contained in:
+25
@@ -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]
|
||||
3. [How it works][how_it_works]
|
||||
4. [Security][security]
|
||||
4. [Developer Guide][developer_guide]
|
||||
5. [Developer Guide][developer_guide]
|
||||
|
||||
## Contribution
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -22,6 +22,12 @@ podTemplate(label: label,
|
||||
}
|
||||
}
|
||||
|
||||
stage('Test') {
|
||||
container('go') {
|
||||
sh 'make test'
|
||||
}
|
||||
}
|
||||
|
||||
stage('Build') {
|
||||
container('go') {
|
||||
sh 'make build'
|
||||
|
||||
Reference in New Issue
Block a user