This commit is contained in:
Kevin R
2020-09-10 00:23:56 +02:00
parent 0c694d86ad
commit e2b638eafb
9 changed files with 177 additions and 30 deletions

View File

@@ -6,6 +6,7 @@ before_script:
- apt-get install -y zip unzip nodejs jsonlint
stages:
- install
- test
- build
- deploy
@@ -36,6 +37,26 @@ hash rules:
changes:
- data/data.min.json
install addon:
stage: install
script:
- npm install
cache:
paths:
- node_modules/
artifacts:
expire_in: 7 days
when: on_success
paths:
- node_modules/
test addon:
stage: test
dependencies:
- install
script:
- npm test
bundle addon:
stage: build
script:
@@ -68,4 +89,4 @@ pages:
- GitLabPages/*
- img/clearurls.svg
- data/data.min.json
- build_tools/minifyDataJSON.js
- build_tools/minifyDataJSON.js