Select Git revision
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
This project is licensed under the MIT License.
Learn more
.gitlab-ci.yml 4.95 KiB
image: python:3.9-buster
stages:
# - pull
# - build
# - test
- deploy
#.pullprivate:
# stage: pull
# script:
# - echo "Cloning repos to set up a fresh build environment."
# - cd ..
# - if [ -d 02465private ]; then echo "Private repository exists"; else git clone https://oauth2:${GBAR_TOKEN}@gitlab.gbar.dtu.dk/02465material/02465private.git; fi
# - if [ -d 02465students ]; then echo "Students repository exists"; else git clone https://oauth2:${GBAR_TOKEN}@gitlab.gbar.dtu.dk/02465material/02465students.git; fi
# - rm -rf 02465students_complete
# - cp -rf 02465students 02465students_complete
#setup_38:
# extends: .pullprivate
# image: python:3.8-buster
#
#setup_39:
# extends: .pullprivate
# image: python:3.9-buster
#
#setup_310:
# extends: .pullprivate
# image: python:3.10-buster
#.build:
# stage: build
# script:
# - apt-get update
# - apt install git
# - apt install -y python-opengl xvfb # Virtual framebuffer for GL stuff.
# - echo "Current working directory"
# - pwd
# - echo "Contents of cwd:"
# - ls
# - echo "Content of 02465material"
# - ls /builds/02465material
# - echo "Content of /builds/02465material/02465public"
# - ls /builds/02465material/02465public
# - cd pythontools
# #- pip install -U setuptools #==58 # Required for unitgrade-devel because of python 2to3 is not in python 3.10... very hacky, and very bad. Need to change away from minifier.
# - pip install -U -r requirements_full.txt --no-cache --upgrade
# - cd tests
# - echo "CURRENT WORKKING DIRECTORY"
# - pwd
# - xvfb-run -s "-screen 0 1400x900x24" python deploy_student_repos.py # > deploy_student_repos_log.txt
#build_38:
# extends: .build
# image: python:3.8-buster
#
#build_39:
# extends: .build
# image: python:3.9-buster
#build_310:
# extends: .build
# image: python:3.10-buster
.test_students:
stage: test
script:
- echo "Testing student files"