.gitlab-ci-compilers.yml 3.92 KB
Newer Older
1 2 3 4 5 6 7 8 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 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
.testing-compilers:
  stage: multiple_tests
  tags:
    - cidocker
  before_script:
    - apt-get update
    - apt-get install -y time valgrind python3 wget tar
  script:
    - $CXX --version
    - make demo data germline
    - make -C algo clean
    - make -C algo CXX=$CXX CC=$CC unit
    - make -C algo CXX=$CXX CC=$CC should
    - make -C algo CXX=$CXX CC=$CC valgrind_unit

.installing-compiler:
  before_script:
    - apt-get update
    - apt-get install -y time valgrind python3 $COMPILER_PKG-$VERSION zlib1g-dev make wget tar python2.7
    - ln -sf /usr/bin/python2.7 /usr/bin/python
    - export CXX=${COMPILER_CPP}-$VERSION
    - export CC=${COMPILER_C}-$VERSION

.testing-gcc:
  extends: .testing-compilers
  variables:
    CXX: g++
    CC: gcc
.testing-clang:
  variables:
    COMPILER_PKG: "clang"
    COMPILER_CPP: "clang++"
    COMPILER_C: "clang"
    VERSION: $CLANG_VERSION
  extends:
    - .testing-compilers
    - .installing-compiler      # Overrides the before_script to install the compiler

.installing-testing-gcc:
  variables:
    COMPILER_PKG: "g++"
    COMPILER_CPP: "g++"
    COMPILER_C: "gcc"
    VERSION: $GCC_VERSION
  extends:
    - .testing-compilers
    - .installing-compiler
    
    
.testing_various_compilers_manual:
  when: manual
  only:
    - /^feature-.*a.*\/.*$/
    - schedules
    
.testing_various_compilers_release:
  only:
    - /^feature-.*a.*\/release$/

test_gcc48_manual:
  image: debian:8-slim
  variables:
    GCC_VERSION: "4.8"
  extends:
    - .installing-testing-gcc
    - .testing_various_compilers_manual
test_gcc48_release:
  image: debian:8-slim
  variables:
    GCC_VERSION: "4.8"
  extends:
    - .installing-testing-gcc
    - .testing_various_compilers_release
test_gcc5_manual:
  image: gcc:5.3
  extends:
    - .testing-gcc
    - .testing_various_compilers_manual
test_gcc5_release:
  image: gcc:5.3
  extends:
    - .testing-gcc
    - .testing_various_compilers_release
test_gcc6_manual:
  image: gcc:6.3
  extends:
    - .testing-gcc
    - .testing_various_compilers_manual
test_gcc6_release:
  image: gcc:6.3
  extends:
    - .testing-gcc
    - .testing_various_compilers_release
test_gcc7_manual:
  image: gcc:7.3
  extends:
    - .testing-gcc
    - .testing_various_compilers_manual
test_gcc7_release:
  image: gcc:7.3
  extends:
    - .testing-gcc
    - .testing_various_compilers_release
test_gcc8_manual:
  image: gcc:8
  extends:
    - .testing-gcc
    - .testing_various_compilers_manual
test_gcc8_release:
  image: gcc:8
  extends:
    - .testing-gcc
    - .testing_various_compilers_release
test_gcc9_manual:
  image: gcc:9
  extends:
    - .testing-gcc
    - .testing_various_compilers_manual
test_gcc9_release:
  image: gcc:9
  extends:
    - .testing-gcc
    - .testing_various_compilers_release
test_clang34_manual:
  image: debian:8-slim
  variables:
    CLANG_VERSION: "3.4"
  extends:
    - .testing-clang
    - .testing_various_compilers_manual
test_clang34_release:
  image: debian:8-slim
  variables:
    CLANG_VERSION: "3.4"
  extends:
    - .testing-clang
    - .testing_various_compilers_release
test_clang4_manual:
  image: debian:8-slim
  variables:
    CLANG_VERSION: "4.0"
  extends:
    - .testing-clang
    - .testing_various_compilers_manual
test_clang4_release:
  image: debian:8-slim
  variables:
    CLANG_VERSION: "4.0"
  extends:
    - .testing-clang
    - .testing_various_compilers_release
test_clang6_manual:
  image: debian:8-slim
  variables:
    CLANG_VERSION: "6.0"
  extends:
    - .testing-clang
    - .testing_various_compilers_manual
test_clang6_release:
  image: debian:8-slim
  variables:
    CLANG_VERSION: "6.0"
  extends:
    - .testing-clang
    - .testing_various_compilers_release
test_clang7_manual:
  image: debian:10-slim
  variables:
    CLANG_VERSION: "7"
  extends:
    - .testing-clang
    - .testing_various_compilers_manual
test_clang7_release:
  image: debian:10-slim
  variables:
    CLANG_VERSION: "7"
  extends:
    - .testing-clang
    - .testing_various_compilers_release