Created
October 25, 2016 20:47
-
-
Save sellout/92760b1caeb13dbfc66c473115c6dbd4 to your computer and use it in GitHub Desktop.
This file contains 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
image: java:8 | |
variables: | |
SBT: "./sbt" | |
TEMP_DIR: "./tmp/" | |
QUASAR_MONGODB_TESTDB: "quasar-test" | |
QUASAR_TEST_PATH_PREFIX: "/${QUASAR_MONGODB_TESTDB}/" | |
build: | |
stage: build | |
# FIXME: exclude IT tests | |
script: '"$SBT" -DisIsolatedEnv=true clean checkHeaders coverage test' | |
mongo_2.6: | |
stage: test | |
variables: | |
MONGO_LINUX: '2.6.11' | |
MONGO_PORT: '27018' | |
MONGO_AUTH: "" | |
QUASAR_MONGODB_HOST: "localhost:27018" | |
QUASAR_MONGODB_2_6: "{\"mongodb\": {\"connectionUri\": \"mongodb://${QUASAR_MONGODB_HOST}\"}}" | |
script: | |
- ./scripts/installMongo mongodb-linux-x86_64-${!MONGO_LINUX} mongo ${!MONGO_PORT} ${!MONGO_AUTH} | |
- '"$SBT" -DisIsolatedEnv=true it/test it/exclusive:test' | |
mongo_3.0: | |
stage: test | |
variables: | |
MONGO_LINUX: '3.0.7' | |
MONGO_PORT: '27019' | |
MONGO_AUTH: "" | |
QUASAR_MONGODB_HOST: "localhost:27019" | |
QUASAR_MONGODB_3_0: "{\"mongodb\": {\"connectionUri\": \"mongodb://${QUASAR_MONGODB_HOST}\"}}" | |
script: | |
- ./scripts/installMongo mongodb-linux-x86_64-${!MONGO_LINUX} mongo ${!MONGO_PORT} ${!MONGO_AUTH} | |
- '"$SBT" -DisIsolatedEnv=true it/test it/exclusive:test' | |
mongo_3.0_RO: | |
stage: test | |
variables: | |
MONGO_LINUX: '3.0.9' | |
MONGO_PORT: '27019' | |
MONGO_AUTH: "-auth" | |
QUASAR_MONGODB_HOST: "localhost:27019" | |
QUASAR_MONGODB_2_6: "{\"mongodb\": {\"connectionUri\": \"mongodb://${QUASAR_MONGODB_HOST}\"}}" | |
script: | |
- ./scripts/installMongo mongodb-linux-x86_64-${!MONGO_LINUX} mongo ${!MONGO_PORT} ${!MONGO_AUTH} | |
- '"$SBT" -DisIsolatedEnv=true it/test it/exclusive:test' | |
mongo_3.2: | |
stage: test | |
variables: | |
MONGO_LINUX: '3.2.3' | |
MONGO_PORT: '27020' | |
MONGO_AUTH: "" | |
QUASAR_MONGODB_HOST: "localhost:27020" | |
QUASAR_MONGODB_3_2: "{\"mongodb\": {\"connectionUri\": \"mongodb://${QUASAR_MONGODB_HOST}\"}}" | |
script: | |
- ./scripts/installMongo mongodb-linux-x86_64-${!MONGO_LINUX} mongo ${!MONGO_PORT} ${!MONGO_AUTH} | |
- '"$SBT" -DisIsolatedEnv=true it/test it/exclusive:test' | |
deploy: | |
stage: deploy | |
script: | |
- '"$SBT" -DisIsolatedEnv=true coverageReport "set coverageEnabled := false" oneJar doc' | |
- "$SCRIPT_DIR/testJar" | |
- "TEST_STATUS=$?" | |
- 'echo "Result of Quasar JAR test: $TEST_STATUS"' | |
- 'exit $TEST_STATUS' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment