mirror of
https://gitlab.com/KevinRoebert/ClearUrls
synced 2025-12-16 14:15:36 +07:00
Update .gitlab-ci.yml
+ Test stage + Trigger page and hash only on change
This commit is contained in:
@@ -3,12 +3,21 @@ image: debian:latest
|
|||||||
before_script:
|
before_script:
|
||||||
- export DEBIAN_FRONTEND= noninteractive
|
- export DEBIAN_FRONTEND= noninteractive
|
||||||
- apt-get update -y
|
- apt-get update -y
|
||||||
- apt-get install -y zip unzip nodejs
|
- apt-get install -y zip unzip nodejs jsonlint
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- build
|
- build
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
|
test rules:
|
||||||
|
stage: test
|
||||||
|
script:
|
||||||
|
- jsonlint-php data/data.min.json
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- data/data.min.json
|
||||||
|
|
||||||
hash rules:
|
hash rules:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
@@ -22,15 +31,15 @@ hash rules:
|
|||||||
- rules.minify.hash
|
- rules.minify.hash
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
changes:
|
||||||
|
- data/data.min.json
|
||||||
|
|
||||||
bundle addon:
|
bundle addon:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- zip ClearUrls -r -FS clearurls.js browser-polyfill.js manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/*
|
- zip ClearUrls -r -FS clearurls.js browser-polyfill.js manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/*
|
||||||
|
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- ClearUrls.zip
|
- ClearUrls.zip
|
||||||
@@ -51,3 +60,8 @@ pages:
|
|||||||
- public
|
- public
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
changes:
|
||||||
|
- GitLabPages/*
|
||||||
|
- img/clearurls.svg
|
||||||
|
- data/data.min.json
|
||||||
|
- build_tools/minifyDataJSON.js
|
||||||
Reference in New Issue
Block a user