.gitlab-ci.yml 1.57 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
18
19
  artifacts:
    paths:
      - test-report
Stephan Seitz's avatar
Stephan Seitz committed
20

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

39
conda:
Stephan Seitz's avatar
Stephan Seitz committed
40
41
42
43
44
45
  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
46
    - conda install pip
Stephan Seitz's avatar
Stephan Seitz committed
47
    - pip install -e .
48
    - python setup.py test
Stephan Seitz's avatar
Stephan Seitz committed
49
50
  tags:
    - docker
51
52
53
  artifacts:
    paths:
      - test-report
Stephan Seitz's avatar
Stephan Seitz committed
54
      - htmlcov
Stephan Seitz's avatar
Stephan Seitz committed
55
56
57
58
59
60
61
62
63
64
# -------------------- 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
65
    - flake8 src
Stephan Seitz's avatar
Stephan Seitz committed
66
67
68
69
70
71
72
73
  tags:
    - docker


build-documentation:
  stage: test
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
  script:
74
    - python -m pip install -e .
Stephan Seitz's avatar
Stephan Seitz committed
75
    - python setup.py docs
Stephan Seitz's avatar
Stephan Seitz committed
76
77
78
79
80
  tags:
    - docker
    - cuda
  artifacts:
    paths:
81
      - build/sphinx/html