-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
38 lines (35 loc) · 1.06 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
stages:
- build-first
- build-second
variables:
GIT_SUBMODULE_STRATEGY: recursive
build-spoofax:
stage: build-first
image: maven:3.8-openjdk-11
script:
- mvn package
artifacts:
paths:
- misc/target/out-lang
build-standalone:
stage: build-second
image: gradle:7.3-jdk11
dependencies:
- build-spoofax
before_script:
- mkdir standalone_out
script:
# prime gradle
- ./gazebo.standalone/run-gradle.sh :cli:compileJava :cli:compileKotlin
# launch stdlib generation
- python -m tools.build_automation -O ./standalone_out
# prepare standalone_out directory structure
- cp -t ./standalone_out ./misc/target/out-lang/*.spoofax-language
- ls -1 standalone_out/*.spoofax-language | tr '\n' '\0' | xargs -0 -n 1 basename > ./standalone_out/gzbs-builtin-langs.txt
# package CLI application
- ./gazebo.standalone/run-gradle.sh :cli:build -PgzbsLibsDir="$PWD"/standalone_out
artifacts:
paths:
- standalone_out
- gazebo.standalone/cli/build/distributions
- gazebo.standalone/cli/build/libs