.gitlab-ci.yml 2.62 KB
Newer Older
1 2 3 4 5
---
stages:
  - build
  - test

6 7 8
variables:
  GIT_SUBMODULE_STRATEGY: "recursive"

9
build:trusty:
10 11
  stage: build
  script:
12
    - docker build -t umit/trusty:$(git rev-parse HEAD)            -f Buildstuff/Dockerfile.trusty            .
13 14 15 16 17 18
  tags:
    - shell

build:trusty-cmake3.5.0:
  stage: build
  script:
19
    - docker build -t umit/trusty-cmake3.5.0:$(git rev-parse HEAD) -f Buildstuff/Dockerfile.trusty-cmake3.5.0 .
20 21 22 23 24 25
  tags:
    - shell

build:xenial:
  stage: build
  script:
26
    - docker build -t umit/xenial:$(git rev-parse HEAD)            -f Buildstuff/Dockerfile.xenial            .
27
  tags:
28
    - shell
29

30 31 32
build:xenial-fsanitize:
  stage: build
  script:
33
    - docker build -t umit/xenial-fsanitize:$(git rev-parse HEAD)  -f Buildstuff/Dockerfile.xenial-fsanitize  .
34 35 36
  tags:
    - shell

37 38 39 40 41 42 43 44 45 46 47 48 49 50
build:bionic:
  stage: build
  script:
    - docker build -t umit/bionic:$(git rev-parse HEAD)            -f Buildstuff/Dockerfile.bionic            .
  tags:
    - shell

build:stretch:
  stage: build
  script:
    - docker build -t umit/stretch:$(git rev-parse HEAD)           -f Buildstuff/Dockerfile.stretch           .
  tags:
    - shell

51
test:trusty:
52 53
  stage: test
  script:
54
    - docker run --workdir /home/gitlab-ci/umit umit/trusty:$(git rev-parse HEAD)            bash run_tests.sh
55 56 57 58 59 60 61 62
  dependencies:
    - build:trusty
  tags:
    - shell

test:trusty-cmake3.5.0:
  stage: test
  script:
63
    - docker run --workdir /home/gitlab-ci/umit umit/trusty-cmake3.5.0:$(git rev-parse HEAD) bash run_tests.sh
64 65 66 67 68 69 70 71
  dependencies:
    - build:trusty-cmake3.5.0
  tags:
    - shell

test:xenial:
  stage: test
  script:
72
    - docker run --workdir /home/gitlab-ci/umit umit/xenial:$(git rev-parse HEAD)            bash run_tests.sh
73
    - docker run --workdir /home/gitlab-ci/umit/build/install umit/xenial:$(git rev-parse HEAD) tar cz . > umit-$(git rev-parse HEAD).tar.gz
74
  dependencies:
75
    - build:xenial
76 77 78
  artifacts:
    paths:
      - umit-*.tar.gz
Tomas Härdin's avatar
Tomas Härdin committed
79
  tags:
80
    - shell
81 82 83 84 85 86 87 88 89 90 91 92

##
## -fsanitize doesn't seem to work with openmpi, so that test is disabled for now
##
#test:xenial-fsanitize:
#  stage: test
#  script:
#    - docker run --workdir /home/gitlab-ci/umit umit/xenial-fsanitize:$(git rev-parse HEAD)  bash run_tests.sh
#  dependencies:
#    - build:xenial-fsanitize
#  tags:
#    - shell
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110

test:bionic:
  stage: test
  script:
    - docker run --workdir /home/gitlab-ci/umit umit/bionic:$(git rev-parse HEAD)            bash run_tests.sh
  dependencies:
    - build:bionic
  tags:
    - shell

test:stretch:
  stage: test
  script:
    - docker run --workdir /home/gitlab-ci/umit umit/stretch:$(git rev-parse HEAD)           bash run_tests.sh
  dependencies:
    - build:stretch
  tags:
    - shell