Skip to content

Commit acb7fed

Browse files
committed
[GitLab CI] Take scripts from TruffleSOM for building
Signed-off-by: Stefan Marr <[email protected]>
1 parent 14734dd commit acb7fed

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.gitlab-ci.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,34 @@ variables:
44
ECLIPSE_EXE: /home/gitlab-runner/.local/eclipse4.25/eclipse
55
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
66

7+
.shared-scripts:
8+
ensure_labsjdk: &ENSURE_LABSJDK_AND_GRAAL_VERSION |
9+
./som --setup labsjdk
10+
mx sforceimport
11+
rm libs/jvmci || true
12+
./som --setup labsjdk
13+
14+
before_script:
15+
- ./som --setup latest-mx
16+
- export PATH=${PATH}:$(pwd)/../mx:/opt/local/bin
17+
- echo "PATH=$PATH"
18+
- (cd ../graal/compiler/mxbuild && sudo reown-project.sh) || true
19+
20+
- |
21+
COMMIT_ID=`./som --setup truffle-commit-id`
22+
(cd ../graal && git fetch --all && git reset --hard $COMMIT_ID) || true
23+
724
build_and_test_job:
825
tags: [yuria]
926
script:
1027
- timeout 5m ant unit-tests som-tests
1128

1229
benchmark_y1:
1330
tags: [yuria]
14-
needs: ["build_and_test_job"]
31+
# needs: ["build_and_test_job"]
1532
allow_failure: true
1633
script:
34+
- *ENSURE_LABSJDK_AND_GRAAL_VERSION
1735
- mx --env libgraal build
1836
- rebench --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c codespeed.conf SOMns-CI m:yuria
1937
after_script:
@@ -23,6 +41,7 @@ benchmark_y2:
2341
tags: [yuria2]
2442
allow_failure: true
2543
script:
44+
- *ENSURE_LABSJDK_AND_GRAAL_VERSION
2645
- mx --env libgraal build
2746
- rebench --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c codespeed.conf SOMns-CI m:yuria2
2847
after_script:
@@ -32,6 +51,7 @@ benchmark_y3:
3251
tags: [yuria3]
3352
allow_failure: true
3453
script:
54+
- *ENSURE_LABSJDK_AND_GRAAL_VERSION
3555
- mx --env libgraal build
3656
- rebench --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c codespeed.conf SOMns-CI m:yuria3
3757
after_script:

0 commit comments

Comments
 (0)