-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
33 lines (31 loc) · 981 Bytes
/
.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
default:
image: python:3.11-alpine
variables:
QUARTER: "23sp"
build-job:
stage: build
script:
- echo test index $CSE493X_INDEX
- date
- apk add git python3-tkinter py3-pip build-base
- pip3 install dukpy
- date
- git clone https://gitlab.cs.washington.edu/cse493x-${QUARTER}/cse493x-${QUARTER}-tests.git
- date
- |
# Run the tests
exit_code=0
if [ -e TEST_ARGS.txt ] ; then
echo found TEST_ARGS.txt! will call run-tests.py with the following args':'
cat TEST_ARGS.txt
python3 cse493x-${QUARTER}-tests/src/run-tests.py --index $CSE493X_INDEX `cat TEST_ARGS.txt` || exit_code=$?
else
echo no TEST_ARGS.txt found. using weekly defaults...
python3 cse493x-${QUARTER}-tests/src/run-tests.py --index $CSE493X_INDEX || exit_code=$?
fi
- date
- echo tests exited with code $exit_code
- exit $exit_code
parallel:
matrix:
- CSE493X_INDEX: [1, 2, 3, 4, 5]