Skip to content

Commit

Permalink
Remove travis CI and build with jenkins (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
Larusso committed Feb 1, 2018
1 parent 0934359 commit 37bf2f8
Show file tree
Hide file tree
Showing 4 changed files with 83 additions and 60 deletions.
31 changes: 0 additions & 31 deletions .travis.yml

This file was deleted.

102 changes: 83 additions & 19 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,99 @@
@Library('github.com/wooga/atlas-jenkins-pipeline@0.0.3') _

pipeline {
agent {
label 'windows'
}

environment {
artifactoryCredentials = credentials('artifactory_publish')
nugetkey = credentials('artifactory_deploy')
TRAVIS_JOB_NUMBER = "${BUILD_NUMBER}.WIN"
}
agent none

stages {
stage('Preparation') {
agent any

steps {
sendSlackNotification "STARTED", true
}
}

stage('Test') {
steps {
gradleWrapper "check --info"
stage('check') {
parallel {
stage('Windows') {
agent {
label 'windows&&atlas'
}

environment {
COVERALLS_REPO_TOKEN = credentials('atlas_paket_coveralls_token')
TRAVIS_JOB_NUMBER = "${BUILD_NUMBER}.WIN"
artifactoryCredentials = credentials('artifactory_publish')
nugetkey = credentials('artifactory_deploy')
}

steps {
gradleWrapper "check"
}

post {
success {
gradleWrapper "jacocoTestReport coveralls"
publishHTML([
allowMissing: true,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'build/reports/jacoco/test/html',
reportFiles: 'index.html',
reportName: 'Coverage',
reportTitles: ''
])
}

always {
junit allowEmptyResults: true, testResults: 'build/test-results/**/*.xml'

}
}
}

stage('macOS') {
agent {
label 'osx&&atlas&&secondary'
}

environment {
COVERALLS_REPO_TOKEN = credentials('atlas_paket_coveralls_token')
TRAVIS_JOB_NUMBER = "${BUILD_NUMBER}.MACOS"
artifactoryCredentials = credentials('artifactory_publish')
nugetkey = credentials('artifactory_deploy')
}

steps {
gradleWrapper "check"
}

post {
success {
gradleWrapper "jacocoTestReport coveralls"
publishHTML([
allowMissing: true,
alwaysLinkToLastBuild: true,
keepAll: true,
reportDir: 'build/reports/jacoco/test/html',
reportFiles: 'index.html',
reportName: 'Coverage',
reportTitles: ''
])
}

always {
junit allowEmptyResults: true, testResults: 'build/test-results/**/*.xml'

}
}
}
}
}
}

post {
always {
sendSlackNotification currentBuild.result, true
junit allowEmptyResults: true, testResults: 'build/test-results/**/*.xml'
gradleWrapper "clean"
post {
always {
sendSlackNotification currentBuild.result, true
}
}
}
}
}
6 changes: 0 additions & 6 deletions travis/setup_linux.sh

This file was deleted.

4 changes: 0 additions & 4 deletions travis/setup_osx.sh

This file was deleted.

0 comments on commit 37bf2f8

Please sign in to comment.