diff --git a/.gitlab-ci.yaml b/.gitlab-ci.yaml new file mode 100644 index 0000000000000000000000000000000000000000..e034142557aefb6c75b309aef01219d569983154 --- /dev/null +++ b/.gitlab-ci.yaml @@ -0,0 +1,12 @@ +image: registry.edugit.org/teckids/team-sysadmin/docker-images/python-pimped:master + +stages: + - test + +test: + stage: test + before_script: + - adduser --disabled-password --gecos "Test User" testuser + - chown -R testuser . + script: + - sudo -u testuser coverage run --source=menu_generator manage.py test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 14383a86a136c6cec0ba5bd9b17ea1304948ffeb..0000000000000000000000000000000000000000 --- a/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -language: python - -python: - - "3.8" - - "3.7" - - "3.6" - - "3.5" - - "3.4" - -env: - - DJANGO="django==3.1.3" - - DJANGO="django==3.0.11" - - DJANGO="django==2.2.17" - - DJANGO="django==2.1.15" - - DJANGO="django==2.0.13" - - DJANGO="django==1.11.29" - - DJANGO="django==1.10.8" - - DJANGO="django==1.9.13" - - DJANGO="django==1.8.19" - -matrix: - exclude: - - python: "3.5" - env: DJANGO="django==3.1.3" - - python: "3.5" - env: DJANGO="django==3.0.11" - - python: "3.4" - env: DJANGO="django==3.1.3" - - python: "3.4" - env: DJANGO="django==3.0.11" - - python: "3.4" - env: DJANGO="django==2.2.17" - - python: "3.4" - env: DJANGO="django==2.1.15" - -install: - - pip install $DJANGO - - pip install coveralls - -script: coverage run --source=menu_generator manage.py test - -after_success: - coveralls \ No newline at end of file