Commit 55eab287 by Jessica Hawkwell

Adding GitLab CI configuration

1 parent 782f0f36
Pipeline #185 passed
in 2 minutes 39 seconds
Showing with 35 additions and 15 deletions
image: registry.felinewith.me/dockerhelper/maven:master
variables:
# This will supress any download for dependencies and plugins or upload messages which would clutter the console log.
# `showDateTime` will show the passed time in milliseconds. You need to specify `--batch-mode` to make this work.
MAVEN_OPTS: "-Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=WARN -Dorg.slf4j.simpleLogger.showDateTime=true -Djava.awt.headless=true"
# As of Maven 3.3.0 instead of this you may define these options in `.mvn/maven.config` so the same config is used
# when running from the command line.
# `installAtEnd` and `deployAtEnd`are only effective with recent version of the corresponding plugins.
MAVEN_CLI_OPTS: "--batch-mode --errors --show-version"
stages:
- compile
- deploy
compile:
stage: compile
script:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS compile test
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS package
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS install
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS deploy
pages:
stage: deploy
script:
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS test
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS site
- mvn -Dgit-rev="`git describe`" $MAVEN_CLI_OPTS site:stage
- mv target/staging public
artifacts:
paths:
- public
only:
- master
......@@ -212,10 +212,6 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
</plugin>
</plugins>
<!-- MAVEN BUILD DEPENDENCIES ************************************************************* MAVEN BUILD DEPENDENCIES -->
......@@ -286,17 +282,6 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/ma
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.6</version>
<executions>
<execution>
<id>attach-site</id>
<configuration>
<classifier>site</classifier>
</configuration>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!