.gitlab-ci.yml 2.39 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
## Minimal tests in windows environment
#windows:
  #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"
    #- python -m pip install -e .
    #- python setup.py test
  #artifacts:
    #when: always
    #paths:
      #- test-report
      #- htmlcov
Stephan Seitz's avatar
Stephan Seitz committed
22

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

42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#conda:
  #stage: test
  #except:
    #variables:
      #- $ENABLE_NIGHTLY_BUILDS
  #image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_conda
  #script:
    #- apt install -y ninja-build
    #- conda install pip
    #- pip install -e .
    #- python setup.py test
  #tags:
    #- docker
  #artifacts:
    #when: always
    #paths:
      #- test-report
      #- htmlcov
Stephan Seitz's avatar
Stephan Seitz committed
60
61
62
63
64
65

full:
  stage: test
  except:
    variables:
      - $ENABLE_NIGHTLY_BUILDS
Stephan Seitz's avatar
Stephan Seitz committed
66
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
Stephan Seitz's avatar
Stephan Seitz committed
67
  script:
Stephan Seitz's avatar
Stephan Seitz committed
68
    - apt install -y ninja-build
Stephan Seitz's avatar
Stephan Seitz committed
69
    - python -m pip install -U cppimport pybind11
Stephan Seitz's avatar
Stephan Seitz committed
70
    - python -m pip install --upgrade git+https://github.com/sympy/sympy.git
Stephan Seitz's avatar
Stephan Seitz committed
71
    - python -m pip install --upgrade pip setuptools wheel
Stephan Seitz's avatar
Stephan Seitz committed
72
    - python -m pip install --upgrade tensorflow-gpu==2.0
Stephan Seitz's avatar
Stephan Seitz committed
73
    - python -m pip install -e .
74
75
    - python -m pip install git+https://i10git.cs.fau.de/seitz/pystencils.git
    - pytest
Stephan Seitz's avatar
Stephan Seitz committed
76
77
78
    - python setup.py doctest
  tags:
    - docker
79
    - cuda
Stephan Seitz's avatar
Stephan Seitz committed
80
81
82
83
84
85
  artifacts:
    when: always
    paths:
      - test-report
      - htmlcov

Stephan Seitz's avatar
Stephan Seitz committed
86
87
88
89
90
91
92
93
94
95
# -------------------- 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
96
    - flake8 src
Stephan Seitz's avatar
Stephan Seitz committed
97
98
99
100
101
102
103
104
  tags:
    - docker


build-documentation:
  stage: test
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
  script:
105
    - python -m pip install -e .
Stephan Seitz's avatar
Stephan Seitz committed
106
    - python setup.py docs
Stephan Seitz's avatar
Stephan Seitz committed
107
108
109
110
  tags:
    - docker
  artifacts:
    paths:
111
      - build/sphinx/html