From: Christian Femers Date: Thu, 24 Oct 2019 21:27:15 +0000 (+0200) Subject: added basic travis ci config for testing it X-Git-Url: https://mograsim.net/gitweb/?p=Mograsim.git;a=commitdiff_plain;h=1627bf11151e572a2edfe975607ff67e6933d0b8 added basic travis ci config for testing it --- diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..141279ac --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +sudo: false +language: java + +jdk: + - openjdk11 + +# Cache downloaded dependencies and plugins between builds. +# To keep cache across branches add 'key: "$CI_JOB_NAME"' +cache: + directories: + - $HOME/.m2 + +# stages: +# - name: clean-verify + +env: + global: + - MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true" + + +script: + - mvn $MAVEN_CLI_OPTS clean verify +# TODO!! +# jobs: +# include: +# - stage: clean-verify +# if: branch NOT IN (master) +# name: Development Build +# script: +# - mvn $MAVEN_CLI_OPTS clean verify +# - stage: clean-verify +# if: branch IN (master) +# name: Release Build +# script: +# - mvn $MAVEN_CLI_OPTS clean verify \ No newline at end of file