language: minimal dist: bionic services: - docker env: global: - DOCKER_IMG="registry.gitlab.com/offa/docker-images" jobs: include: - env: COMPILER=gcc-10 - env: COMPILER=gcc-9 - env: COMPILER=gcc-8 - env: COMPILER=gcc-7 - env: COMPILER=clang-10 - env: COMPILER=clang-9 - env: COMPILER=clang-8 - env: COMPILER=clang-7 - env: COMPILER=clang-6 - env: COMPILER=clang-5 - env: CONAN_GCC_VERSIONS=9 before_install: - if [[ -v COMPILER ]]; then docker pull ${DOCKER_IMG}/${COMPILER}:stable; fi script: - if [[ -v COMPILER ]]; then docker run -v ${PWD}:/mnt -it ${DOCKER_IMG}/${COMPILER} /bin/bash -c "cd /mnt; script/ci_build.sh"; fi - if [[ -v CONAN_GCC_VERSIONS ]]; then script/conan_build.sh; fi