.gitlab-ci.yml 1.15 KB
Newer Older
Mattia Rizzolo's avatar
Mattia Rizzolo committed
1
2
3
.test_template: &test
  before_script:
    - apt-get update
Mattia Rizzolo's avatar
Mattia Rizzolo committed
4
5
6
7
8
9
10
11
12
13
14
    - apt-get -y install
      python3
      python3-markdown
      python3-ldap3
      python3-psycopg2
      python3-xapian
      python3-django
      python3-django-housekeeping
      python3-debian
      python3-debiancontributors
      python3-djangorestframework
15
      python3-gitlab
Mattia Rizzolo's avatar
Mattia Rizzolo committed
16
17
18
19
20
21
22
23
      gnupg
      debian-keyring
      python3-git
      libjs-bootstrap4
      fonts-fork-awesome
      libjs-jquery-datatables
      libjs-jquery-flot
      python3-model-mommy
24
      python3-requests-oauthlib
Mattia Rizzolo's avatar
Mattia Rizzolo committed
25
      python3-jwcrypto
26
      $ADDITIONAL_PACKAGES
Mattia Rizzolo's avatar
Mattia Rizzolo committed
27
  script:
28
    - python3 manage.py test -v2
Enrico Zini's avatar
Enrico Zini committed
29

30
31
# the test named "tests" is the one that is checked when doing autodeployment.
tests:
Mattia Rizzolo's avatar
Mattia Rizzolo committed
32
  <<: *test
33
34
35
36
  only:
    - master
  image: debian:buster-backports
  variables:
37
    ADDITIONAL_PACKAGES: python3-django/buster-backports git/buster-backports git-man/buster-backports
38
39
40
41
42

test buster:
  <<: *test
  except:
    - master
43
  image: debian:buster-backports
44
45
  variables:
    ADDITIONAL_PACKAGES: python3-django/buster-backports
46
47
48
49

tests bullseye:
  <<: *test
  image: debian:bullseye
Mattia Rizzolo's avatar
Mattia Rizzolo committed
50

51
test unstable:
Mattia Rizzolo's avatar
Mattia Rizzolo committed
52
  <<: *test
53
  image: debian:unstable