Skip to content

Commit

Permalink
Merge pull request #64 from ascii-dresden/feature/jenkins-builds
Browse files Browse the repository at this point in the history
Feature/jenkins builds
  • Loading branch information
steigr committed Mar 23, 2017
2 parents cb78261 + 6355770 commit 684a648
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ stage("Build") {
parallel (
"linux": {
node("linux && docker") {
checkout([$class: 'GitSCM',
branches: [[name: "${env.BRANCH_NAME}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanCheckout']],
submoduleCfg: [],
userRemoteConfigs: [[url: 'https://github.com/ascii-dresden/asciii.git']]
])
environment("cargo build --release")
environment("strip -s target/release/asciii")
sh("test -f output/asciii-linux && exit 0; mkdir output; cp target/release/asciii output/asciii-linux")
Expand All @@ -14,6 +21,13 @@ stage("Build") {
},
"osx": {
node("osx && rust") {
checkout([$class: 'GitSCM',
branches: [[name: "${env.BRANCH_NAME}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanCheckout']],
submoduleCfg: [],
userRemoteConfigs: [[url: 'https://github.com/ascii-dresden/asciii.git']]
])
environment("cargo build --release")
environment("strip target/release/asciii")
sh("test -f output/asciii-macos && exit 0; mkdir output; cp target/release/asciii output/asciii-macos")
Expand All @@ -22,6 +36,13 @@ stage("Build") {
},
"win64": {
node("win64 && rust") {
checkout([$class: 'GitSCM',
branches: [[name: "${env.BRANCH_NAME}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'CleanCheckout']],
submoduleCfg: [],
userRemoteConfigs: [[url: 'https://github.com/ascii-dresden/asciii.git']]
])
// TODO: fix line-endings
sh("sed -i 's/\\r\$//' ci/environment")
// builds on stable fail because of reasons, so use nighly for now
Expand Down

0 comments on commit 684a648

Please sign in to comment.