Skip to content

Commit 47442d4

Browse files
committed
Added build, test, and benchmark job on zullie1
- install dependencies with ASDF - adapt user folder for zullie1 - move more bits into before_script Signed-off-by: Stefan Marr <[email protected]>
1 parent e0e9d4d commit 47442d4

File tree

1 file changed

+36
-15
lines changed

1 file changed

+36
-15
lines changed

.gitlab-ci.yml

+36-15
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,48 @@ before_script:
1111
- git submodule update --init
1212
- ~/.asdf/bin/asdf install awfy pypysrc-2.7-v${PYPY_RELEASE}
1313
- ~/.asdf/bin/asdf install python pypy2.7-${PYPY_RELEASE}
14-
- export PYPY_SRC_DIR=/data/home/gitlab-runner/.asdf/installs/awfy/pypysrc-2.7-v${PYPY_RELEASE}
15-
- export PYPY_BIN_DIR=/data/home/gitlab-runner/.asdf/installs/python/pypy2.7-${PYPY_RELEASE}/bin
14+
- export PYPY_SRC_DIR=$HOME/.asdf/installs/awfy/pypysrc-2.7-v${PYPY_RELEASE}
15+
- export PYPY_BIN_DIR=$HOME/.asdf/installs/python/pypy2.7-${PYPY_RELEASE}/bin
16+
- export PROJECT_FOLDER=$(pwd)
17+
- export PYTHONPATH=${PYTHONPATH}:${PYPY_SRC_DIR}:src
18+
- export RPYTHON=${PYPY_SRC_DIR}/rpython/bin/rpython
19+
20+
build:aarch64-test-and-rebench:
21+
stage: build-test
22+
tags: [zullie1]
23+
24+
script:
25+
- export PATH=/opt/local/bin:/opt/local/sbin:/Users/gitlab-runner/Library/Python/3.12/bin:${PATH}:${PYPY_BIN_DIR}
26+
27+
# BC JIT Compiled Version
28+
- SOM_INTERP=BC $RPYTHON --batch -Ojit src/main_rpython.py
29+
- ./som-bc-jit -cp Smalltalk TestSuite/TestHarness.som
30+
- ./som-bc-jit -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
31+
32+
# AST JIT Compiled Version
33+
- SOM_INTERP=AST $RPYTHON --batch -Ojit src/main_rpython.py
34+
- ./som-ast-jit -cp Smalltalk TestSuite/TestHarness.som
35+
- ./som-ast-jit -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
36+
37+
# BC Interpreter
38+
- SOM_INTERP=BC $RPYTHON --batch src/main_rpython.py
39+
- ./som-bc-interp -cp Smalltalk TestSuite/TestHarness.som
40+
- ./som-bc-interp -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
41+
42+
# AST Interpreter
43+
- SOM_INTERP=AST $RPYTHON --batch src/main_rpython.py
44+
- ./som-ast-interp -cp Smalltalk TestSuite/TestHarness.som
45+
- ./som-ast-interp -cp Smalltalk:TestSuite Examples/Benchmarks/TestSuite/TestTestSuite.som
46+
47+
- (cd Examples/Benchmarks/TestSuite && ./duplicate-tests.sh)
48+
- rebench --experiment="CI ID $CI_PIPELINE_ID" --branch="$CI_COMMIT_REF_NAME" -c rebench.conf
49+
1650

1751
build-and-test-interpreters:
1852
stage: build-test
1953
tags: [yuria]
2054
script:
21-
# Setup
22-
- export PROJECT_FOLDER=$(pwd)
23-
- export PYTHONPATH=$PYTHONPATH:$PYPY_SRC_DIR:src
24-
- export RPYTHON=$PYPY_SRC_DIR/rpython/bin/rpython
2555
- export PATH=$PATH:$PYPY_BIN_DIR
26-
2756
- export SOM_INTERP=BC
2857
- (cd Examples/Benchmarks/TestSuite && ./duplicate-tests.sh)
2958

@@ -63,10 +92,6 @@ build-and-test-jit-bc:
6392
stage: build-test
6493
tags: [yuria2]
6594
script:
66-
# Setup
67-
- export PROJECT_FOLDER=$(pwd)
68-
- export PYTHONPATH=$PYTHONPATH:$PYPY_SRC_DIR:src
69-
- export RPYTHON=$PYPY_SRC_DIR/rpython/bin/rpython
7095
- export PATH=$PATH:$PYPY_BIN_DIR
7196
- export SOM_INTERP=BC
7297

@@ -89,10 +114,6 @@ build-and-test-jit-ast:
89114
stage: build-test
90115
tags: [yuria3]
91116
script:
92-
# Setup
93-
- export PROJECT_FOLDER=$(pwd)
94-
- export PYTHONPATH=$PYTHONPATH:$PYPY_SRC_DIR:src
95-
- export RPYTHON=$PYPY_SRC_DIR/rpython/bin/rpython
96117
- export PATH=$PATH:$PYPY_BIN_DIR
97118
- export SOM_INTERP=AST
98119

0 commit comments

Comments
 (0)