.gitlab-ci.yml 727 Bytes
Newer Older
Martin Reinecke's avatar
Martin Reinecke committed
1
#image: ubuntu:artful
Martin Reinecke's avatar
Martin Reinecke committed
2
image: debian:testing-slim
Jait Dixit's avatar
Jait Dixit committed
3 4 5 6 7 8 9 10 11

stages:
  - test

variables:
  DOCKER_DRIVER: overlay

before_script:
  - apt-get update
Theo Steininger's avatar
Theo Steininger committed
12
  - chmod +x ci/*.sh
13
  - ci/install_basics.sh
14 15
  - pip install --process-dependency-links --upgrade -r ci/requirements.txt
  - pip3 install --process-dependency-links --upgrade -r ci/requirements.txt
Jait Dixit's avatar
Jait Dixit committed
16

17 18 19
test_min:
  stage: test
  script:
20 21
    - python setup.py install --user -f
    - python3 setup.py install --user -f
Martin Reinecke's avatar
Martin Reinecke committed
22
    - nosetests
Martin Reinecke's avatar
Martin Reinecke committed
23 24
    - mpiexec --allow-run-as-root -n 4 nosetests -x
    - mpiexec --allow-run-as-root -n 4 nosetests3 -x
Martin Reinecke's avatar
Martin Reinecke committed
25
    - nosetests3 -x --with-coverage --cover-package=nifty2go --cover-branches
Jait Dixit's avatar
Jait Dixit committed
26 27
    - >
      coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'