Skip to content

Instantly share code, notes, and snippets.

@jbrisbin
Last active June 9, 2016 13:38
Show Gist options
  • Save jbrisbin/9f64b73207562ba5de5cb7d739d97092 to your computer and use it in GitHub Desktop.
Save jbrisbin/9f64b73207562ba5de5cb7d739d97092 to your computer and use it in GitHub Desktop.
Example of Declarative configuration of build/test orchestration
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