-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.gitlab-ci.yml
61 lines (55 loc) · 1.22 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
53
54
55
56
57
58
59
60
61
image: openjdk:8-jdk
# GRADLE_OPTS: Disable the Gradle daemon for Continuous Integration servers as
# correctness is usually a priority over speed in CI environments.
# GRADLE_USER_HOME: redirect the gradle user home to cache the wrapper and
# dependencies.
variables:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
GRADLE_USER_HOME: "./.gradle"
# Default cache
cache:
paths:
- .gradle
# The assemble task actually builds the project.
# If it fails here, the tests can't run.
build:
stage: build
script:
- ./gradlew clean assemble
allow_failure: false
apidocs:
stage: build
script:
- ./gradlew -Prelease.useLastTag=true groovydoc
artifacts:
name: apidocs
expire_in: 31d
paths:
- build/docs/
only:
- master@latte/latte
# Use the generated build output to run the tests.
test:
stage: test
script:
- ./gradlew check
artifacts:
name: reports
expire_in: 31d
paths:
- build/reports/
pages:
stage: deploy
dependencies:
- apidocs
- test
script:
- test ! -d public || mv public .public
- mkdir public
- mv build/docs/groovydoc public/api
- mv build/reports public/
artifacts:
paths:
- public
only:
- master@latte/latte