Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: .gitlab-ci.yml

Issue 29904564: Issue 6682 - Automated builds (Closed)
Patch Set: Created Oct. 8, 2018, 3:38 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dependencies » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: .gitlab-ci.yml
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2c7a3fb2463a7563268e3d4f5aadd97a48806eca..b3642634941881bdb34771fddc8aa5e6b76fd3bb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -22,6 +22,7 @@
stages:
- prepare
- test
+ - build
.dependencies:
script: &dependencies
@@ -30,15 +31,31 @@ stages:
- python ensure_dependencies.py
- "[ -d node_modules ] || npm install"
-.test_template:
- stage: test
- before_script: *dependencies
+.pull_cache:
cache:
key: cache_$CI_COMMIT_SHA
paths:
- ./
policy: pull
+.test_template:
+ extends: .pull_cache
+ stage: test
+ before_script: *dependencies
+
+.build:
+ extends: .pull_cache
+ before_script: *dependencies
+ stage: build
+ only:
+ - master
+ script:
+ - python build.py build -t $PLATFORM
+ artifacts:
+ paths:
+ - adblockplusfirefox-*.xpi
+ - adblockpluschrome-*.zip
+ - adblockplusedge-*.appx
prepare-dependencies:
stage: prepare
@@ -63,3 +80,20 @@ lint:
extends: .test_template
script:
- npm run lint
+
+build:chrome:
+ extends: .build
+ variables:
+ PLATFORM: chrome
+
+build:gecko:
+ extends: .build
+ variables:
+ PLATFORM: gecko
+
+build:edge:
+ extends: .build
+ variables:
+ PLATFORM: edge
+ # see https://issues.adblockplus.org/ticket/7024
+ allow_failure: true
« no previous file with comments | « no previous file | dependencies » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld