Skip to content

Commit f8f49ea

Browse files
committed
add .gitlab-ci.yml
1 parent cb026f7 commit f8f49ea

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.gitlab-ci.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
default:
2+
image: python:3.11-alpine
3+
4+
variables:
5+
QUARTER: "23sp"
6+
7+
build-job:
8+
stage: build
9+
script:
10+
- echo test index $CSE493X_INDEX
11+
- date
12+
- apk add git python3-tkinter py3-pip build-base
13+
- pip3 install dukpy
14+
- date
15+
- git clone https://gitlab.cs.washington.edu/cse493x-${QUARTER}/cse493x-${QUARTER}-tests.git
16+
- date
17+
- |
18+
# Run the tests
19+
exit_code=0
20+
if [ -e TEST_ARGS.txt ] ; then
21+
echo found TEST_ARGS.txt! will call run-tests.py with the following args':'
22+
cat TEST_ARGS.txt
23+
python3 cse493x-${QUARTER}-tests/src/run-tests.py --index $CSE493X_INDEX `cat TEST_ARGS.txt` || exit_code=$?
24+
else
25+
echo no TEST_ARGS.txt found. using weekly defaults...
26+
python3 cse493x-${QUARTER}-tests/src/run-tests.py --index $CSE493X_INDEX || exit_code=$?
27+
fi
28+
- date
29+
- echo tests exited with code $exit_code
30+
- exit $exit_code
31+
parallel:
32+
matrix:
33+
- CSE493X_INDEX: [1, 2, 3, 4, 5]

0 commit comments

Comments
 (0)