GitLab CI & testing image
This commit is contained in:
44
.gitlab-ci.yml
Normal file
44
.gitlab-ci.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
stages:
|
||||
- test
|
||||
|
||||
.pintos_tests:
|
||||
stage: test
|
||||
image: gitlab.doc.ic.ac.uk:4567/lab2425_autumn/pintos_22/pintos-testing:latest
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- src/$DIR/build/tests/$DIR/
|
||||
before_script:
|
||||
- cd src/utils
|
||||
- make
|
||||
- export PATH=$PWD:$PATH
|
||||
- cd ../..
|
||||
script:
|
||||
- cd src/$DIR
|
||||
- make check | tee build.log
|
||||
- grep -q "FAIL tests/$DIR" build.log && exit 1 || exit 0
|
||||
|
||||
test_devices:
|
||||
extends: .pintos_tests
|
||||
variables:
|
||||
DIR: devices
|
||||
|
||||
test_filesys:
|
||||
extends: .pintos_tests
|
||||
variables:
|
||||
DIR: filesys
|
||||
|
||||
test_threads:
|
||||
extends: .pintos_tests
|
||||
variables:
|
||||
DIR: threads
|
||||
|
||||
test_userprog:
|
||||
extends: .pintos_tests
|
||||
variables:
|
||||
DIR: userprog
|
||||
|
||||
test_vm:
|
||||
extends: .pintos_tests
|
||||
variables:
|
||||
DIR: vm
|
||||
3
Dockerfile.devel
Normal file
3
Dockerfile.devel
Normal file
@@ -0,0 +1,3 @@
|
||||
FROM debian:12-slim
|
||||
|
||||
RUN apt update && apt install gcc perl make qemu-system-i386 gdb -y
|
||||
Reference in New Issue
Block a user