Last active
June 9, 2016 13:38
-
-
Save jbrisbin/9f64b73207562ba5de5cb7d739d97092 to your computer and use it in GitHub Desktop.
Example of Declarative configuration of build/test orchestration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
axes "os" -> Seq("ubuntu-14.04", "centos-7"), | |
"mesos" -> Seq("0.26.1", "0.28.1") | |
s"Build ${build.name}" should { | |
"Compile native" in s"build-essential:$os" { | |
tags "parallel", "native", "required" | |
make "clean", "package" | |
mv "packages/**/*.tgz" to s"artifactory/${build.name}" | |
assert "Packages should be staged" { | |
files "artifactory/${build.name}/**/*.tgz" contains "my_package(.*)" | |
} | |
assert "Tests should be run" { | |
make "test" | |
(sh "./scripts/run_integration_tests.sh", os, mesos).stdout.contains("Success") | |
} | |
publish s"artifactory/${build.name}" | |
} | |
"Compile Scala" in s"build-essential:$os" { | |
tags "parallel", "scala", "optional" | |
sbt "package" | |
assert "Tests should be run" { | |
sbt "test" | |
} | |
publish | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment