Commit 9fde185b by Jessica Hawkwell

updating CI

1 parent 55eab287
Pipeline #186 passed
in 1 minute 43 seconds
Showing with 23 additions and 4 deletions
...@@ -16,15 +16,15 @@ stages: ...@@ -16,15 +16,15 @@ stages:
compile: compile:
stage: compile stage: compile
script: script:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS compile test - mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS compile test package install deploy
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS package only:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS install - master
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS deploy
pages: pages:
stage: deploy stage: deploy
script: script:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS test - mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS test
- mvn versions:set -DprocessDependencies=false -DnewVersion=`git-describe`-`git rev-parse --abbrev-ref HEAD`
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS site - mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS site
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS site:stage - mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS site:stage
- mv target/staging public - mv target/staging public
...@@ -33,3 +33,22 @@ pages: ...@@ -33,3 +33,22 @@ pages:
- public - public
only: only:
- master - master
test:
stage: compile
script:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS compile test
only:
- branches
except:
- master
compile:
stage: compile
script:
- mvn versions:set -DnewVersion=`git describe`
- mvn versions:commit
- find * -name pom.xml -exec git add {} \;
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS compile package install deploy
only:
- /([.0-9]+)-RELEASE/
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!