-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
52 lines (45 loc) · 1.13 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
services:
- mongo:latest
cache:
paths:
- .m2/repository
key: "$CI_BUILD_REF_NAME"
variables:
MAVEN_OPTS: "-Djava.awt.headless=true -Dmaven.repo.local=.m2/repository"
MAVEN_CLI_OPTS: "--batch-mode --errors --fail-at-end -Dtestfx.setup.timeout=20000 --show-version -Dgitlab-ci=true"
MONGO_HOST: "mongo"
build-job:
image: odinuge/maven-javafx:3-jdk-8
stage: build
script:
- "mvn clean compile -f tdt4140-gr1816/pom.xml $MAVEN_CLI_OPTS"
unittest-job:
image: odinuge/maven-javafx:3-jdk-8
stage: test
dependencies:
- build-job
script:
- "mvn package -f tdt4140-gr1816/pom.xml $MAVEN_CLI_OPTS"
integrationtest-job:
image: odinuge/maven-javafx:3-jdk-8
stage: test
dependencies:
- build-job
script:
- "mvn verify -f tdt4140-gr1816/pom.xml $MAVEN_CLI_OPTS"
build-exporter:
image: golang:1.10
stage: build
script:
- cd fitbit-exporter
- go get "github.com/odinuge/go-graphql"
- go build
test-exporter:
image: golang:1.10
stage: test
script:
- cd fitbit-exporter
- go get "github.com/odinuge/go-graphql"
- diff -u <(echo -n) <(gofmt -d ./)
- go vet
- go test