Commit f6abd735 authored by Sebastian Schwarz's avatar Sebastian Schwarz
Browse files

Update .gitlab-ci.yml

parent 05982008
Pipeline #489997 failed with stages
in 7 seconds
...@@ -19,14 +19,14 @@ prepare: ...@@ -19,14 +19,14 @@ prepare:
- mkdir -p /.docker - mkdir -p /.docker
- docker -build - docker -build
--file ${DOCKER_FILE} --file ${DOCKER_FILE}
--tag ${DOCKER_IMAGE_DEV}-base-image /.docker --tag ${DOCKER_IMAGE_DEV}:${CI_COMMIT_REF_NAME} /.docker
tags: tags:
- docker - docker
test-prerequisites: test-prerequisites:
stage: test stage: test
image: ${DOCKER_IMAGE_DEV}-base-image image: ${DOCKER_IMAGE_DEV}:${CI_COMMIT_REF_NAME}
script: script:
- python3.6 -m pytest -q /opt/richardsonpy/. - python3.6 -m pytest -q /opt/richardsonpy/.
- python3.6 -m pytest -q /opt/pycity_base/. - python3.6 -m pytest -q /opt/pycity_base/.
...@@ -36,7 +36,7 @@ test-prerequisites: ...@@ -36,7 +36,7 @@ test-prerequisites:
unittest: unittest:
stage: test stage: test
image: ${DOCKER_IMAGE_DEV}-base-image image: ${DOCKER_IMAGE_DEV}:${CI_COMMIT_REF_NAME}
script: script:
- ln -s $CI_PROJECT_DIR/LICENSE.txt $CI_PROJECT_DIR/src/LICENSE.txt - ln -s $CI_PROJECT_DIR/LICENSE.txt $CI_PROJECT_DIR/src/LICENSE.txt
- ln -s $CI_PROJECT_DIR/README.md $CI_PROJECT_DIR/src/README.md - ln -s $CI_PROJECT_DIR/README.md $CI_PROJECT_DIR/src/README.md
...@@ -48,7 +48,7 @@ unittest: ...@@ -48,7 +48,7 @@ unittest:
lint: lint:
stage: test stage: test
image: ${DOCKER_IMAGE_DEV}-base-image image: ${DOCKER_IMAGE_DEV}:${CI_COMMIT_REF_NAME}
script: script:
- mkdir -p lint - mkdir -p lint
- ln -s $CI_PROJECT_DIR/LICENSE.txt $CI_PROJECT_DIR/src/LICENSE.txt - ln -s $CI_PROJECT_DIR/LICENSE.txt $CI_PROJECT_DIR/src/LICENSE.txt
...@@ -71,7 +71,7 @@ doc: ...@@ -71,7 +71,7 @@ doc:
stage: deploy stage: deploy
rules: rules:
- if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_TAG =~ /^v/' - if: '$CI_COMMIT_BRANCH == "master" || $CI_COMMIT_TAG =~ /^v/'
image: ${DOCKER_IMAGE_DEV}-base-image image: ${DOCKER_IMAGE_DEV}:${CI_COMMIT_REF_NAME}
script: script:
- mkdir -p doc - mkdir -p doc
- ln -s $CI_PROJECT_DIR/LICENSE.txt $CI_PROJECT_DIR/src/LICENSE.txt - ln -s $CI_PROJECT_DIR/LICENSE.txt $CI_PROJECT_DIR/src/LICENSE.txt
...@@ -93,7 +93,7 @@ pages: ...@@ -93,7 +93,7 @@ pages:
- if: '$CI_COMMIT_TAG =~ /^v/' - if: '$CI_COMMIT_TAG =~ /^v/'
when: delayed when: delayed
start_in: '60 minutes' start_in: '60 minutes'
image: ${DOCKER_IMAGE_DEV}-base-image image: ${DOCKER_IMAGE_DEV}:${CI_COMMIT_REF_NAME}
script: script:
- mkdir -p public - mkdir -p public
- mv $CI_PROJECT_DIR/docs/* public - mv $CI_PROJECT_DIR/docs/* public
...@@ -110,7 +110,7 @@ pypi-release: ...@@ -110,7 +110,7 @@ pypi-release:
- if: '$CI_COMMIT_TAG =~ /^v/' - if: '$CI_COMMIT_TAG =~ /^v/'
when: delayed when: delayed
start_in: '120 minutes' start_in: '120 minutes'
image: ${DOCKER_IMAGE_DEV}-base-image image: ${DOCKER_IMAGE_DEV}:${CI_COMMIT_REF_NAME}
script: script:
- mkdir -p release - mkdir -p release
- ln -s $CI_PROJECT_DIR/LICENSE.txt $CI_PROJECT_DIR/src/LICENSE.txt - ln -s $CI_PROJECT_DIR/LICENSE.txt $CI_PROJECT_DIR/src/LICENSE.txt
......
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