gitlab: consolidate stages

This now optimizes for a successful build.
This commit is contained in:
Matthew Waters 2019-06-12 15:38:14 +10:00
parent f00192da0c
commit a9cd95f7ba
2 changed files with 12 additions and 22 deletions

View file

@ -1,16 +1,11 @@
stages: stages:
- "build docker" - "build docker"
- "preparation" - "preparation"
# Test just one basic build, if succeds procced to test the rest - "pre-build"
- "build" - "build"
- "test" - "test"
# Run multiple builds and tests, multi-distro, multi-arch # use the binaries in some way
- "full builds" - "integrate"
- "full tests"
# build some apps to check that cross-platform binaries are usable
- "apps"
# Deploy the documentation
- "deploy"
test manifest: test manifest:
variables: variables:

View file

@ -1,14 +1,10 @@
stages: stages:
- 'preparation' - 'preparation'
# Test just one basic build, if it succeeds proceed to test the rest - 'pre-build'
- 'build' - 'build'
- 'test' - 'test'
# Run multiple builds and tests, multi-distro, multi-arch # Use the resulting binaries
- 'full builds' - 'integrate'
- 'full tests'
# build some apps to check that cross-platform binaries are usable
- 'apps'
- 'deploy'
variables: variables:
ANDROID_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/android:2019-06-12-354260' ANDROID_IMAGE: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/android:2019-06-12-354260'
@ -81,7 +77,7 @@ gst indent:
- $CI_PROJECT_NAME == "gst-docs" - $CI_PROJECT_NAME == "gst-docs"
.build: .build:
stage: 'full builds' stage: 'build'
dependencies: dependencies:
- "manifest" - "manifest"
variables: variables:
@ -225,7 +221,7 @@ integration testsuites fedora:
# Valgrind # Valgrind
.valgrind fedora x86_64: .valgrind fedora x86_64:
extends: '.test fedora x86_64' extends: '.test fedora x86_64'
stage: 'full tests' stage: 'test'
variables: variables:
EXTRA_VALIDATE_ARGS: "--valgrind" EXTRA_VALIDATE_ARGS: "--valgrind"
# Some suppression files are missing a newline at the end which messes things # Some suppression files are missing a newline at the end which messes things
@ -290,7 +286,7 @@ valgrind ges:
# #
# Produces runtime and devel tarball packages for linux/android or .pkg for macos # Produces runtime and devel tarball packages for linux/android or .pkg for macos
.cerbero: .cerbero:
stage: "full builds" stage: "build"
image: $CERBERO_IMAGE image: $CERBERO_IMAGE
dependencies: dependencies:
- "manifest" - "manifest"
@ -365,7 +361,7 @@ valgrind ges:
# with the associated build-tools. # with the associated build-tools.
.cerbero deps: .cerbero deps:
extends: .cerbero extends: .cerbero
stage: "build" stage: "pre-build"
script: script:
- $CERBERO $CERBERO_ARGS show-config - $CERBERO $CERBERO_ARGS show-config
- $CERBERO $CERBERO_ARGS fetch-bootstrap --build-tools-only - $CERBERO $CERBERO_ARGS fetch-bootstrap --build-tools-only
@ -527,7 +523,7 @@ build cerbero cross win64:
# #
.android universal examples: .android universal examples:
image: $ANDROID_IMAGE image: $ANDROID_IMAGE
stage: 'apps' stage: 'integrate'
variables: variables:
EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples EXAMPLES_HOME: ${CI_PROJECT_DIR}/examples
GSTREAMER_ROOT_ANDROID: ${CI_PROJECT_DIR}/examples/cerbero-android-universal GSTREAMER_ROOT_ANDROID: ${CI_PROJECT_DIR}/examples/cerbero-android-universal
@ -590,7 +586,6 @@ cerbero android universal examples:
# #
cerbero deps macos x86_64: cerbero deps macos x86_64:
extends: '.cerbero deps' extends: '.cerbero deps'
stage: "build"
variables: variables:
ARCH: "darwin_x86_64" ARCH: "darwin_x86_64"
CONFIG: "osx-x86-64.cbc" CONFIG: "osx-x86-64.cbc"
@ -645,7 +640,7 @@ documentation:
image: $FEDORA30_IMAGE image: $FEDORA30_IMAGE
dependencies: dependencies:
- 'build nodebug fedora x86_64' - 'build nodebug fedora x86_64'
stage: deploy stage: integrate
script: script:
- pip3 install --upgrade git+https://github.com/hotdoc/hotdoc.git - pip3 install --upgrade git+https://github.com/hotdoc/hotdoc.git