.gitlab-ci.yml 1.94 KB
Newer Older
Stephan Seitz's avatar
Stephan Seitz committed
1
# Minimal tests in windows environment
2
windows:
Stephan Seitz's avatar
Stephan Seitz committed
3
4
5
6
7
8
9
10
11
12
13
14
  stage: test
  except:
    variables:
      - $ENABLE_NIGHTLY_BUILDS
  tags:
    - win
  script:
    - source /cygdrive/c/Users/build/Miniconda3/Scripts/activate
    - source activate pystencils_dev
    - env
    - conda env list
    - python -c "import numpy"
15
16
    - python -m pip install -e .
    - python setup.py test
17
  artifacts:
Stephan Seitz's avatar
Stephan Seitz committed
18
    when: always
19
20
    paths:
      - test-report
Stephan Seitz's avatar
Stephan Seitz committed
21
      - htmlcov
Stephan Seitz's avatar
Stephan Seitz committed
22

23
ubuntu:
Stephan Seitz's avatar
Stephan Seitz committed
24
25
26
27
  stage: test
  except:
    variables:
      - $ENABLE_NIGHTLY_BUILDS
Stephan Seitz's avatar
Stephan Seitz committed
28
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
Stephan Seitz's avatar
Stephan Seitz committed
29
  script:
30
    - python3 -m pip install -e .
Stephan Seitz's avatar
Stephan Seitz committed
31
    - python3 setup.py test
Stephan Seitz's avatar
Stephan Seitz committed
32
33
  tags:
    - docker
34
35
    - cuda
  artifacts:
Stephan Seitz's avatar
Stephan Seitz committed
36
    when: always
37
38
    paths:
      - test-report
Stephan Seitz's avatar
Stephan Seitz committed
39
      - htmlcov
Stephan Seitz's avatar
Stephan Seitz committed
40

41
conda:
Stephan Seitz's avatar
Stephan Seitz committed
42
43
44
45
46
47
  stage: test
  except:
    variables:
      - $ENABLE_NIGHTLY_BUILDS
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_conda
  script:
Stephan Seitz's avatar
Stephan Seitz committed
48
    - conda install pip
Stephan Seitz's avatar
Stephan Seitz committed
49
    - pip install -e .
50
    - python setup.py test
Stephan Seitz's avatar
Stephan Seitz committed
51
52
  tags:
    - docker
53
  artifacts:
Stephan Seitz's avatar
Stephan Seitz committed
54
    when: always
55
56
    paths:
      - test-report
Stephan Seitz's avatar
Stephan Seitz committed
57
      - htmlcov
Stephan Seitz's avatar
Stephan Seitz committed
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76

full:
  stage: test
  except:
    variables:
      - $ENABLE_NIGHTLY_BUILDS
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_conda
  script:
    - python -m pip install -e .
    - python setup.py test
    - python setup.py doctest
  tags:
    - docker
  artifacts:
    when: always
    paths:
      - test-report
      - htmlcov

Stephan Seitz's avatar
Stephan Seitz committed
77
78
79
80
81
82
83
84
85
86
# -------------------- Linter & Documentation --------------------------------------------------------------------------


flake8-lint:
  stage: test
  except:
    variables:
      - $ENABLE_NIGHTLY_BUILDS
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
  script:
Stephan Seitz's avatar
Stephan Seitz committed
87
    - flake8 src
Stephan Seitz's avatar
Stephan Seitz committed
88
89
90
91
92
93
94
95
  tags:
    - docker


build-documentation:
  stage: test
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
  script:
96
    - python -m pip install -e .
Stephan Seitz's avatar
Stephan Seitz committed
97
    - python setup.py docs
Stephan Seitz's avatar
Stephan Seitz committed
98
99
100
101
102
  tags:
    - docker
    - cuda
  artifacts:
    paths:
103
      - build/sphinx/html