.gitlab-ci.yml 825 Bytes
Newer Older
Martin Reinecke's avatar
Martin Reinecke committed
1
2
3
4
5
6
7
8
image: $CONTAINER_TEST_IMAGE

variables:
  CONTAINER_TEST_IMAGE: gitlab-registry.mpcdf.mpg.de/$CI_PROJECT_PATH:$CI_BUILD_REF_NAME

stages:
  - build_docker
  - testing
Martin Reinecke's avatar
Martin Reinecke committed
9
  - build_tarballs
Martin Reinecke's avatar
Martin Reinecke committed
10
11

build_docker:
Martin Reinecke's avatar
fix    
Martin Reinecke committed
12
  image: docker:19.03.8
Martin Reinecke's avatar
Martin Reinecke committed
13
14
15
16
17
18
  stage: build_docker
  script:
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN gitlab-registry.mpcdf.mpg.de
    - docker build -t $CONTAINER_TEST_IMAGE .
    - docker push $CONTAINER_TEST_IMAGE

Martin Reinecke's avatar
cleanup    
Martin Reinecke committed
19
test_gcc:
Martin Reinecke's avatar
Martin Reinecke committed
20
21
  stage: testing
  script:
Martin Reinecke's avatar
Martin Reinecke committed
22
    - python3 setup.py install --user -f
Martin Reinecke's avatar
Martin Reinecke committed
23
    - pytest-3 -q python/test
Martin Reinecke's avatar
Martin Reinecke committed
24

Martin Reinecke's avatar
cleanup    
Martin Reinecke committed
25
test_clang:
Martin Reinecke's avatar
Martin Reinecke committed
26
27
  stage: testing
  script:
Martin Reinecke's avatar
Martin Reinecke committed
28
    - CC="clang -fsized-deallocation" python3 setup.py install --user -f
Martin Reinecke's avatar
Martin Reinecke committed
29
    - pytest-3 -q python/test
Martin Reinecke's avatar
Martin Reinecke committed
30

Martin Reinecke's avatar
test    
Martin Reinecke committed
31
release:
Martin Reinecke's avatar
test    
Martin Reinecke committed
32
33
34
  stage: build_tarballs
  script:
    - python3 setup.py sdist
Martin Reinecke's avatar
Martin Reinecke committed
35
    - 'mv dist/*.tar.gz .'
Martin Reinecke's avatar
test    
Martin Reinecke committed
36
37
38
  artifacts:
    paths:
      - '*.tar.gz'