Skip to content
Snippets Groups Projects
.gitlab-ci.yml 2.04 KiB
Newer Older
Stephan Seitz's avatar
Stephan Seitz committed
# Minimal tests in windows environment
windows:
Stephan Seitz's avatar
Stephan Seitz committed
  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

Stephan Seitz's avatar
Stephan Seitz committed
  stage: test
  except:
    variables:
      - $ENABLE_NIGHTLY_BUILDS
Stephan Seitz's avatar
Stephan Seitz committed
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_ubuntu
Stephan Seitz's avatar
Stephan Seitz committed
  script:
    - apt install -y ninja-build
    - python3 -m pip install -e .
Stephan Seitz's avatar
Stephan Seitz committed
    - python3 setup.py test
Stephan Seitz's avatar
Stephan Seitz committed
  tags:
    - docker
    - cuda
  artifacts:
    when: always
    paths:
      - test-report
Stephan Seitz's avatar
Stephan Seitz committed
      - htmlcov
Stephan Seitz's avatar
Stephan Seitz committed

Stephan Seitz's avatar
Stephan Seitz committed
  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
Stephan Seitz's avatar
Stephan Seitz committed
    - pip install -e .
    - python setup.py test
Stephan Seitz's avatar
Stephan Seitz committed
  tags:
    - docker
  artifacts:
    when: always
    paths:
      - test-report
Stephan Seitz's avatar
Stephan Seitz committed
      - htmlcov

full:
  stage: test
  except:
    variables:
      - $ENABLE_NIGHTLY_BUILDS
Stephan Seitz's avatar
Stephan Seitz committed
  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full
  script:
Stephan Seitz's avatar
Stephan Seitz committed
    - apt install -y ninja-build
    - 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
# -------------------- 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
    - flake8 src
Stephan Seitz's avatar
Stephan Seitz committed
  tags:
    - docker


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