Commit 3d238833 authored by Adrian DC's avatar Adrian DC
Browse files

ci(gitlab-ci): migrate from 'only: local' to 'rules: if: $CI_LOCAL'

Signed-off-by: default avatarAdrian DC <radian.dc@gmail.com>
parent f7822844
Loading
Loading
Loading
Loading
+14 −16
Changes for .gitlab-ci.yml: 14 added lines, 16 removed lines.
Original line number Diff line number Diff line
@@ -51,8 +51,8 @@ variables:
    - git add -v ./CHANGELOG.md
    - git commit --amend --no-edit
    - git tag -f -m '' "${tag}"
  only:
    - local
  rules:
    - if: $CI_LOCAL

'Dependencies':
  stage: development
@@ -65,8 +65,8 @@ variables:
    - sudo pip3 install -r ./requirements/quality.txt --upgrade
    - sudo pip3 install -r ./requirements/tests.txt --upgrade
    - sudo pip3 install -r ./requirements/docs.txt --upgrade
  only:
    - local
  rules:
    - if: $CI_LOCAL

'Development':
  stage: development
@@ -77,8 +77,8 @@ variables:
    - pipx install --force ./dist/*.whl
  after_script:
    - sudo rm -rf ./build ./*.egg-info ./.eggs
  only:
    - local
  rules:
    - if: $CI_LOCAL

'Images':
  stage: development
@@ -97,8 +97,8 @@ variables:
        docker push "${REGISTRY_HOST}/${REGISTRY_OWNER}/${REGISTRY_PROJECT}/${image}"
        docker rmi "${image}"
      done
  only:
    - local
  rules:
    - if: $CI_LOCAL

'Preview':
  stage: development
@@ -108,8 +108,8 @@ variables:
    - pip3 install -q -r ./requirements/tests.txt --upgrade 2>/dev/null
  script:
    - pexpect-executor -- termtosvg ./docs/preview.svg -c 'python3 ./docs/preview.py' -g 80x24 -t ./docs/template.svg
  only:
    - local
  rules:
    - if: $CI_LOCAL

# =============================================================================
# Stage: prepare
@@ -218,8 +218,8 @@ variables:
  image: local:quiet
  script:
    - pipx install --force ./dist/*.whl
  only:
    - local
  rules:
    - if: $CI_LOCAL

# =============================================================================
# Stage: test (templates)
@@ -460,8 +460,6 @@ variables:
    - pip3 install -q -r ./requirements/deploy.txt --upgrade
  script:
    - twine upload -u '__token__' -p "${TWINE_PASSWORD_TEST}" --repository testpypi ./dist/*
  only:
    - local
  tags:
    - local
  rules:
    - if: $CI_LOCAL
  when: manual