-
Notifications
You must be signed in to change notification settings - Fork 15
/
.gitlab-ci.yml
73 lines (64 loc) · 1.2 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
62
63
64
65
66
67
68
69
70
71
72
73
image: pikalab/ci:jdk-gradle-git-graphviz
variables:
ORG_GRADLE_PROJECT_orchidBaseUrl: "https://pika-lab.gitlab.io/tuprolog/2p-in-kotlin/"
cache:
paths:
- $HOME/.gradle/
- $HOME/.m2/
- gradle/
- .gradle/
- build/
- '**/build/'
- core/src/commonMain/kotlin/it/unibo/tuprolog/Info.kt
stages:
- check
- build
- test
Check Code Style:
stage: check
script:
- gradle clean
- gradle ktlintCheck --parallel
artifacts:
paths:
- "**/build/reports/ktlint/"
only:
- branches
Compile JVM:
stage: build
script:
- gradle jvmMainClasses jvmTestClasses --parallel
only:
- branches
Compile JS:
stage: build
script:
- gradle jsMainClasses jsTestClasses --parallel
only:
- branches
Test JVM:
stage: test
script:
- gradle jvmTest
artifacts:
reports:
junit: "**/build/test-results/jvmTest/*.xml"
only:
- branches
Test JS:
stage: test
script:
- gradle jsTest
only:
- branches
pages:
script:
- mkdir public
- gradle orchidBuild
- cp -r documentation/build/docs/orchid/* public
artifacts:
paths:
- public
allow_failure: true
only:
- /^(master)|(release)|(documentation)$/