Commit 752b1ed5 authored by Ash McKenzie's avatar Ash McKenzie

Add explicit stage: test

parent 734b2a67
......@@ -10,8 +10,33 @@ variables:
DOCKER_DRIVER: overlay
TEST_IMAGE: registry.gitlab.com/gitlab-org/gitlab-development-kit:latest
# Use eclint to check that the .editorconfig rulesets are being adhered to
verify:
stage: build
image: registry.gitlab.com/gitlab-org/gitlab-build-images:node-10
script:
- npm config set unsafe-perm true # enable run npm as root
- make verify
build:image:
image: docker:git
stage: build
script:
# taken from https://gitlab.com/gitlab-org/gitlab-qa/blob/master/.gitlab-ci.yml
- ./bin/docker load
- ./bin/docker build
- ./bin/docker store
- test -n "$CI_BUILD_TOKEN" || exit 0
- ./bin/docker publish
when: manual
cache:
key: "docker-build-cache"
paths:
- ./latest_image.tar
code_quality:
image: docker:stable
stage: test
variables:
DOCKER_DRIVER: overlay2
allow_failure: true
......@@ -30,6 +55,7 @@ code_quality:
container_scanning:
image: docker:stable
stage: test
allow_failure: true
before_script: []
cache: {}
......@@ -56,30 +82,6 @@ container_scanning:
paths:
- gl-sast-container-report.json
# Use eclint to check that the .editorconfig rulesets are being adhered to
verify:
stage: build
image: registry.gitlab.com/gitlab-org/gitlab-build-images:node-10
script:
- npm config set unsafe-perm true # enable run npm as root
- make verify
build:image:
image: docker:git
stage: build
script:
# taken from https://gitlab.com/gitlab-org/gitlab-qa/blob/master/.gitlab-ci.yml
- ./bin/docker load
- ./bin/docker build
- ./bin/docker store
- test -n "$CI_BUILD_TOKEN" || exit 0
- ./bin/docker publish
when: manual
cache:
key: "docker-build-cache"
paths:
- ./latest_image.tar
test:install:
image: $TEST_IMAGE
stage: test
......
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