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

Unified Diff: .gitlab-ci.yml

Issue 29862580: Issue 6651 - Pt1: Qunit tests through gitlab CI (PENDING) (Closed) Base URL: https://codereview.adblockplus.org/29860555/
Patch Set: Created Aug. 23, 2018, 7 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 | build_requirements.txt » ('j') | build_requirements.txt » ('J')
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
new file mode 100644
index 0000000000000000000000000000000000000000..f82d03d887286f2b69616e82e37932d4af1cedc6
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,56 @@
+# This file is part of Adblock Plus <https://adblockplus.org/>,
+# Copyright (C) 2006-present eyeo GmbH
+#
+# Adblock Plus is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License version 3 as
+# published by the Free Software Foundation.
+#
+# Adblock Plus is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
+
+stages:
+ - install
+ - test_ext
+
+.gecko_branch: &gecko_branch
Sebastian Noack 2018/08/23 23:35:53 What does that do?
tlucas 2018/08/24 10:27:58 Removed now, but FWIW: this template (used as a v
+ only:
+ - branches
+
+prepare-dependencies:
+ stage: install
+ script:
+ - mkdir -p .git/info && touch .git/info/exclude
Sebastian Noack 2018/08/23 23:35:53 Perhaps we should rather adapt ensure_dependencies
tlucas 2018/08/24 10:27:58 While you're right about the perks, i'd rather not
+ - pip install --user -r build_requirements.txt
Sebastian Noack 2018/08/23 23:45:06 If the only purpose of the requirements file is to
tlucas 2018/08/24 10:27:58 Done.
+ - python ensure_dependencies.py
+ - npm install
+ cache:
+ key: cache_$CI_COMMIT_SHA
Sebastian Noack 2018/08/23 23:35:53 Is there any point in caching if the cache is inva
tlucas 2018/08/24 10:27:58 Removed now, but FWIW: The cache is shared across
+ paths:
+ - ./
+ policy: push
+
+# reusable template for browser-test jobs
+.browser_test_t: &browser_test
+ stage: test_ext
+ script:
+ - npm test -- $TARGET
+ cache:
+ key: cache_$CI_COMMIT_SHA
+ paths:
+ - ./
+ policy: pull
+ environment:
+ name: devbuilds
+
+# Invoke browser tests
+
+qunit:gecko:
+ variables:
+ TARGET: gecko
Sebastian Noack 2018/08/23 23:35:53 Where is this variable picked up?
tlucas 2018/08/24 10:27:58 Line 41, However, it's removed now.
+ <<: *browser_test
+ <<: *gecko_branch
« no previous file with comments | « no previous file | build_requirements.txt » ('j') | build_requirements.txt » ('J')

Powered by Google App Engine
This is Rietveld