.gitlab-ci.yml 1.49 KB
Newer Older
Stephan Seitz's avatar
Stephan Seitz committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Minimal tests in windows environment
minimal-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"
Stephan Seitz's avatar
Stephan Seitz committed
15
    - conda install pip
16
    - pip install -e .
Stephan Seitz's avatar
Stephan Seitz committed
17
    - python3 setup.py test
Stephan Seitz's avatar
Stephan Seitz committed
18
19
20
21
22
23
24
25

minimal-ubuntu:
  stage: test
  except:
    variables:
      - $ENABLE_NIGHTLY_BUILDS
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_ubuntu
  script:
Stephan Seitz's avatar
Stephan Seitz committed
26
27
    - pip install -e .
    - python3 setup.py test
Stephan Seitz's avatar
Stephan Seitz committed
28
29
30
31
32
33
34
35
36
37
  tags:
    - docker

minimal-conda:
  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
38
    - conda install pip
39
    - pip install -e .
Stephan Seitz's avatar
Stephan Seitz committed
40
    - python3 setup.py test
Stephan Seitz's avatar
Stephan Seitz committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
  tags:
    - docker


# -------------------- 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
55
    - flake8 src
Stephan Seitz's avatar
Stephan Seitz committed
56
57
58
59
60
61
62
63
64
  tags:
    - docker
    - cuda


build-documentation:
  stage: test
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
  script:
Stephan Seitz's avatar
Stephan Seitz committed
65
    - conda install pip
66
    - pip install -e .
Stephan Seitz's avatar
Stephan Seitz committed
67
68
69
70
71
72
73
74
75
    - export PYTHONPATH=`pwd`
    - mkdir html_doc
    - sphinx-build -W -b html doc  html_doc
  tags:
    - docker
    - cuda
  artifacts:
    paths:
      - html_doc