From 3f319f2f858472db9a11ef48bfd525f18136d160 Mon Sep 17 00:00:00 2001 From: Tobias Frust Date: Tue, 9 Jul 2019 14:26:41 +0200 Subject: [PATCH] Add gcc:8 to GitLab CI test matrix --- .gitlab-ci.yml | 27 ++++++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2c8302b..ad1e71d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,4 @@ -build:gcclatest: - image: gcc:latest +.build: &build stage: build script: - g++ src/helloworld.cpp -o helloWorld @@ -7,9 +6,27 @@ build:gcclatest: paths: - helloWorld -test:gcclatest: - image: gcc:latest +.test: &test + stage: test script: - ./helloWorld + +build:gcc:latest: + image: gcc:latest + <<: *build + +build:gcc:8: + image: gcc:8 + <<: *build + +test:gcc:latest: + image: gcc:latest + <<: *test + dependencies: + - build:gcc:latest + +test:gcc:8: + image: gcc:8 + <<: *test dependencies: - - build:gcclatest + - build:gcc:8