Commit 6b72519b authored by Philip Chimento's avatar Philip Chimento

CI: Conserve resources by running cheap jobs first

This splits the pipeline into a few more stages. Cheap jobs such as
linting and static code checking are run in the "static_analysis" phase,
then the normal build/test jobs are run, then expensive tests such as
code coverage are run in the "thorough_tests" phase.
parent 0ba8428c
......@@ -2,12 +2,14 @@ services:
- docker
stages:
- static_analysis
- build
- thorough_tests
- failure
- deploy
.build: &build
stage: build
when: on_success
artifacts:
name: log
when: always
......@@ -38,6 +40,7 @@ stages:
ubuntu_gcc:
<<: *build
stage: build
image: claudioandre/spidermonkey:ubuntu.dev.gcc
variables:
BASE: debian
......@@ -50,6 +53,7 @@ ubuntu_gcc:
ubuntu_clang:
<<: *build
stage: build
image: claudioandre/spidermonkey:ubuntu.dev.gcc
variables:
BASE: debian
......@@ -62,6 +66,7 @@ ubuntu_clang:
fedora_gcc:
<<: *build
stage: build
image: claudioandre/spidermonkey:fedora.dev.gcc
variables:
BASE: fedora
......@@ -73,6 +78,7 @@ fedora_gcc:
# Temporarily disabled: "unknown arguments -mcet and -fcf-protection"
# fedora_clang:
# <<: *build
# stage: build
# image: claudioandre/spidermonkey:fedora.dev.gcc
# variables:
# BASE: fedora
......@@ -83,6 +89,7 @@ fedora_gcc:
coverage:
<<: *build
stage: thorough_tests
image: claudioandre/spidermonkey:fedora.27.gcc
variables:
BASE: fedora
......@@ -93,6 +100,7 @@ coverage:
cppcheck:
<<: *build
stage: static_analysis
image: claudioandre/spidermonkey:fedora.dev.gcc
variables:
BASE: fedora
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment