Update .gitlab-ci.yml

This commit is contained in:
Kevin Röbert 2019-02-12 23:46:14 +00:00
parent 32b525363a
commit 4321771762

View File

@ -1,7 +1,6 @@
image: debian:latest image: debian:latest
before_script: before_script:
- export COMMIT_TIME=$(git show -s --format=%ct $CI_COMMIT_SHA)
- export DEBIAN_FRONTEND= noninteractive - export DEBIAN_FRONTEND= noninteractive
- apt-get update -y - apt-get update -y
- apt-get install -y zip unzip - apt-get install -y zip unzip
@ -12,23 +11,25 @@ stages:
build firefox: build firefox:
stage: build stage: build
script: script:
- zip ClearUrls_firefox_$COMMIT_TIME -r -FS clearurls.js browser-polyfill.js manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/* - zip ClearUrls_firefox_$CI_BUILD_ID -r -FS clearurls.js browser-polyfill.js manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/*
only: only:
- master - master
artifacts: artifacts:
name: "ClearUrls_chrome_$CI_BUILD_ID"
paths: paths:
- bin/Firefox/ClearUrls_chrome_$COMMIT_TIME.zip - bin/Firefox/*.zip
build chrome: build chrome:
stage: build stage: build
script: script:
- zip ClearUrls_chrome_$COMMIT_TIME -r -FS ChromeVersion/clearurls.js browser-polyfill.js ChromeVersion/manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/* ChromeVersion/css/core.css - zip ClearUrls_chrome_$CI_BUILD_ID -r -FS ChromeVersion/clearurls.js browser-polyfill.js ChromeVersion/manifest.json img/* external_js/* html/* core_js/* css/* fonts/* _locales/* ChromeVersion/css/core.css
only: only:
- master - master
artifacts: artifacts:
name: "ClearUrls_chrome_$CI_BUILD_ID"
paths: paths:
- bin/Chrome/ClearUrls_chrome_$COMMIT_TIME.zip - bin/Chrome/*.zip