.gitlab-ci.yml 884 Bytes
Newer Older
1
# CI / CD for the fsl/conda/installer project.
2
3
# Unit tests are run every time commits are
# pushed to the master branch
4
5
6
7

stages:
  - test

8
.test-template:
9
10
11
12
13
  stage: test
  tags:
    - fsl-ci
    - docker
  rules:
Paul McCarthy's avatar
Paul McCarthy committed
14
    - if: '$CI_COMMIT_TAG == null'
15
  script:
16
17
    - pip install --upgrade pip setuptools wheel
    - pip install pytest coverage pytest-cov mock
Paul McCarthy's avatar
Paul McCarthy committed
18
    - pytest -v --cov=fslinstaller test
19

20
21
22
test:py27:
  extends: .test-template
  image:    python:2.7
23

24
25
26
test:py33:
  extends: .test-template
  image:    python:3.3
27

28
29
30
test:py34:
  extends: .test-template
  image:    python:3.4
31

32
33
34
test:py35:
  extends: .test-template
  image:    python:3.5
35

36
37
38
test:py36:
  extends: .test-template
  image:    python:3.6
39

40
41
42
test:py37:
  extends: .test-template
  image:    python:3.7
43

44
45
46
test:py38:
  extends: .test-template
  image:    python:3.8
47

48
49
50
test:py39:
  extends: .test-template
  image:    python:3.9