.gitlab-ci.yml 1.16 KB
Newer Older
Philipp Arras's avatar
Philipp Arras committed
1
image: parras/nifty:latest
Jait Dixit's avatar
Jait Dixit committed
2

Martin Reinecke's avatar
Martin Reinecke committed
3
stages:
Philipp Arras's avatar
Philipp Arras committed
4
  - build_docker
Philipp Arras's avatar
Change  
Philipp Arras committed
5 6
  # - test
  # - release
7

Jait Dixit's avatar
Jait Dixit committed
8
variables:
Philipp Arras's avatar
Change  
Philipp Arras committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
  DOCKER_DRIVER: overlay2

before_script:
  - docker info

# test_python2_scalar:
#   stage: test
#   script:
#     - python setup.py install --user -f
#     - nosetests -q --with-coverage --cover-package=nifty4 --cover-branches --cover-erase
#     - >
#       coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'

# test_python3_scalar:
#   stage: test
#   script:
#     - python3 setup.py install --user -f
#     - nosetests3 -q

# test_python2_mpi:
#   stage: test
#   script:
#     - python setup.py install --user -f
#     - OMP_NUM_THREADS=1 mpiexec -n 2 nosetests -q 2> /dev/null

# test_python3_mpi:
#   stage: test
#   script:
#     - python3 setup.py install --user -f
#     - OMP_NUM_THREADS=1 mpiexec -n 2 nosetests3 -q 2> /dev/null

# pages:
#   stage: release
#   script:
#     - python setup.py install --user -f
#     - sh docs/generate.sh
#     - mv docs/build/ public/
#   artifacts:
#     paths:
#     - public
#   only:
#   - NIFTy_4
Philipp Arras's avatar
Philipp Arras committed
51 52 53 54 55

services:
  - docker:dind

build_docker_container:
Philipp Arras's avatar
Change  
Philipp Arras committed
56
  image: docker:stable
Philipp Arras's avatar
Philipp Arras committed
57 58 59
  stage: build_docker
  script:
    - docker build -t nifty .