Skip to content
Snippets Groups Projects
Commit bd5e0478 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

chore: Add ci config for pipeline with build+test

parent e6f11c45
1 merge request!7Gnuaffero
Pipeline #570 passed
image: maven:3.8.6-openjdk-11
stages:
- build
- test
variables:
MAVEN_CLI_OPTS: "-s ci_settings.xml --batch-mode"
build:
stage: build
script:
- './mvnw $MAVEN_CLI_OPTS compile'
tags:
- vips-docker
test:
stage: test
script:
- './mvnw $MAVEN_CLI_OPTS test'
tags:
- vips-docker
\ No newline at end of file
<settings xmlns="http://maven.apache.org/SETTINGS/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd">
<servers>
<server>
<id>gitlab-maven</id>
<configuration>
<httpHeaders>
<property>
<name>Job-Token</name>
<value>${CI_JOB_TOKEN}</value>
</property>
</httpHeaders>
</configuration>
</server>
</servers>
</settings>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment