versioning stage in gitlab-ci.yml

This commit is contained in:
Lesenechal Remi 2020-05-15 17:57:22 +02:00
parent 9e81aaa1f8
commit 41eded82f4

View File

@ -17,6 +17,7 @@ stages:
- ide-deploy - ide-deploy
- nix - nix
- nix-push - nix-push
- versioning
# TODO provide sensible CI for master # TODO provide sensible CI for master
dont-merge-to-master: dont-merge-to-master:
@ -99,6 +100,13 @@ dont-merge-to-master:
- eval $(opam config env) - eval $(opam config env)
- scripts/setup_repos.sh - scripts/setup_repos.sh
version_scheduled_job:
stage: versioning
script:
- scripts/versioning.sh
only:
- schedules
local-dune-job: local-dune-job:
<<: *before_script <<: *before_script
stage: test stage: test
@ -113,6 +121,8 @@ local-dune-job:
only: only:
- merge_requests - merge_requests
- dev - dev
- tags
- triggers
- /^.*-run-dev$/ - /^.*-run-dev$/
# Run a docker build without publishing to the registry # Run a docker build without publishing to the registry
@ -158,6 +168,7 @@ build-and-package-debian-9:
<<: *build_binary <<: *build_binary
only: only:
- dev - dev
- tags
- /^.*-run-dev$/ - /^.*-run-dev$/
build-and-package-debian-10: build-and-package-debian-10:
@ -175,6 +186,7 @@ build-and-package-debian-10:
only: only:
- merge_requests - merge_requests
- dev - dev
- tags
- /^.*-run-dev$/ - /^.*-run-dev$/
build-and-package-ubuntu-18-04: build-and-package-ubuntu-18-04:
@ -188,6 +200,7 @@ build-and-package-ubuntu-18-04:
<<: *build_binary <<: *build_binary
only: only:
- dev - dev
- tags
- /^.*-run-dev$/ - /^.*-run-dev$/
build-and-package-ubuntu-19-10: build-and-package-ubuntu-19-10:
@ -201,6 +214,7 @@ build-and-package-ubuntu-19-10:
<<: *build_binary <<: *build_binary
only: only:
- dev - dev
- tags
- /^.*-run-dev$/ - /^.*-run-dev$/
# Pages are deployed from dev, be careful not to override 'next' # Pages are deployed from dev, be careful not to override 'next'
@ -232,7 +246,8 @@ run-webide-unit-tests:
- npm ci - npm ci
- export LIGO_CMD=/bin/ligo && npm run test - export LIGO_CMD=/bin/ligo && npm run test
rules: rules:
- changes: - if: '$TAG_JOB != "true"'
changes:
- tools/webide/** - tools/webide/**
when: always when: always
@ -256,10 +271,11 @@ build-publish-ide-image:
. .
- docker push "${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}" - docker push "${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}"
rules: rules:
- changes: - if: '$TAG_JOB != "true"'
changes:
- tools/webide/** - tools/webide/**
when: always when: always
- if: '$CI_COMMIT_REF_NAME == "dev"' if: '$CI_COMMIT_REF_NAME == "dev"'
when: always when: always
run-webide-e2e-tests: run-webide-e2e-tests:
@ -271,10 +287,11 @@ run-webide-e2e-tests:
- export WEBIDE_IMAGE="${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}" - export WEBIDE_IMAGE="${WEBIDE_IMAGE_NAME}:${CI_COMMIT_SHORT_SHA}"
- docker-compose run e2e - docker-compose run e2e
rules: rules:
- changes: - if: '$TAG_JOB != "true"'
changes:
- tools/webide/** - tools/webide/**
when: always when: always
- if: '$CI_COMMIT_REF_NAME == "dev"' if: '$CI_COMMIT_REF_NAME == "dev"'
when: always when: always
deploy-handoff: deploy-handoff: