.gitlab-ci.yml 757 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
Martin Reinecke's avatar
Martin Reinecke committed
12 13 14
  - sh ci/install_basics.sh
  - pip install --process-dependency-links -r ci/requirements.txt
  - pip3 install --process-dependency-links -r ci/requirements.txt
Jait Dixit's avatar
Jait Dixit committed
15

16 17 18
test_min:
  stage: test
  script:
Martin Reinecke's avatar
Martin Reinecke committed
19
    - pip install --user .
Martin Reinecke's avatar
Martin Reinecke committed
20
    - pip3 install --user .
Martin Reinecke's avatar
Martin Reinecke committed
21
    - nosetests -q
Martin Reinecke's avatar
Martin Reinecke committed
22
    - nosetests3 -q
Martin Reinecke's avatar
Martin Reinecke committed
23 24
    - OMP_NUM_THREADS=1 mpiexec --allow-run-as-root -n 4 nosetests -q 2>/dev/null
    - OMP_NUM_THREADS=1 mpiexec --allow-run-as-root -n 4 nosetests3 -q 2>/dev/null
Martin Reinecke's avatar
Martin Reinecke committed
25
    - nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
Martin Reinecke's avatar
Martin Reinecke committed
26
    - >
Martin Reinecke's avatar
Martin Reinecke committed
27
      coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'