This commit is contained in:
Kevin R
2020-11-08 23:51:10 +01:00
parent d5fe894414
commit 96a0a6e8cb
2 changed files with 53 additions and 53 deletions

View File

@@ -14,33 +14,33 @@ stages:
- install - install
- test - test
- build - build
- deploy # - deploy
test rules: # test rules:
stage: test # stage: test
script: # script:
- jsonlint-php data/data.min.json # - jsonlint-php data/data.min.json
only: # only:
changes: # changes:
- data/data.min.json # - data/data.min.json
#
hash rules: # hash rules:
stage: build # stage: build
script: # script:
- sha256sum data/data.min.json | awk '{print $1}' > rules.min.hash # - sha256sum data/data.min.json | awk '{print $1}' > rules.min.hash
- node build_tools/minifyDataJSON.js "data/data.min.json" "data.minify.json" # - node build_tools/minifyDataJSON.js "data/data.min.json" "data.minify.json"
- sha256sum data.minify.json | awk '{print $1}' > rules.minify.hash # - sha256sum data.minify.json | awk '{print $1}' > rules.minify.hash
artifacts: # artifacts:
paths: # paths:
- rules.min.hash # - rules.min.hash
- data.minify.json # - data.minify.json
- rules.minify.hash # - rules.minify.hash
only: # only:
refs: # refs:
- merge_requests # - merge_requests
- master # - master
changes: # changes:
- data/data.min.json # - data/data.min.json
install dependencies: install dependencies:
image: node:latest image: node:latest
@@ -83,33 +83,33 @@ test:addon:
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 distribution/*
only: only:
- master - master
artifacts: artifacts:
paths: paths:
- ClearUrls.zip - ClearURLs.zip
pages: # pages:
stage: deploy # stage: deploy
script: # script:
- mkdir public # - mkdir public
- mkdir public/data # - mkdir public/data
- mv GitLabPages/* public/ # - mv GitLabPages/* public/
- cp img/clearurls.svg public/clearurls.svg # - cp img/clearurls.svg public/clearurls.svg
- cp data/data.min.json public/data/data.min.json # - cp data/data.min.json public/data/data.min.json
- sha256sum public/data/data.min.json | awk '{print $1}' > public/data/rules.min.hash # - sha256sum public/data/data.min.json | awk '{print $1}' > public/data/rules.min.hash
- node build_tools/minifyDataJSON.js "public/data/data.min.json" "public/data/data.minify.json" # - node build_tools/minifyDataJSON.js "public/data/data.min.json" "public/data/data.minify.json"
- sha256sum public/data/data.minify.json | awk '{print $1}' > public/data/rules.minify.hash # - sha256sum public/data/data.minify.json | awk '{print $1}' > public/data/rules.minify.hash
artifacts: # artifacts:
paths: # paths:
- public # - public
only: # only:
refs: # refs:
- merge_requests # - merge_requests
- master # - master
changes: # changes:
- GitLabPages/* # - GitLabPages/*
- img/clearurls.svg # - img/clearurls.svg
- data/data.min.json # - data/data.min.json
- build_tools/minifyDataJSON.js # - build_tools/minifyDataJSON.js

View File

@@ -45,7 +45,7 @@ Reasoning for needed permissions can be found under [here](https://gitlab.com/Ke
## CI/CD Artifacts Download (for Firefox- and Chrome-Dev only) ## CI/CD Artifacts Download (for Firefox- and Chrome-Dev only)
Here you can download the packed files for the Firefox- and Chrome-Dev: Here you can download the packed files for the Firefox- and Chrome-Dev:
[<img src="promotion/download-128.png"/>](https://gitlab.com/KevinRoebert/ClearUrls/-/jobs/artifacts/master/raw/ClearUrls.zip?job=bundle%20addon) [<img src="promotion/download-128.png"/>](https://gitlab.com/KevinRoebert/ClearUrls/-/jobs/artifacts/master/raw/ClearURLs.zip?job=bundle%20addon)
## Test ## Test
If you want to test whether ClearURLs works correctly on your system, you can go to this test page: [https://test.clearurls.xyz/](https://test.clearurls.xyz/) If you want to test whether ClearURLs works correctly on your system, you can go to this test page: [https://test.clearurls.xyz/](https://test.clearurls.xyz/)
@@ -64,7 +64,7 @@ You can choose between two options to contribute. You can create a merge request
It is not necessary to translate the description field; in the most cases it is empty.* It is not necessary to translate the description field; in the most cases it is empty.*
#### Merge request #### Merge request
If you want to create a merge request, you must open the path [`_locales/en/messages.json`](https://github.com/KevinRoebert/ClearUrls/blob/master/_locales/en/messages.json) in the ClearURLs repo If you want to create a merge request, you must open the path [`source/_locales/en/messages.json`](https://github.com/KevinRoebert/ClearUrls/blob/master/source/_locales/en/messages.json) in the ClearURLs repo
and translate the english terms into terms of your language. Once you have translated all the terms, you make a pull request of your translation. and translate the english terms into terms of your language. Once you have translated all the terms, you make a pull request of your translation.
Please push your translation into the folder `_locales/{country code}/messages.json`. Please push your translation into the folder `_locales/{country code}/messages.json`.