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

Unified Diff: .gitlab-ci.yml

Issue 29867566: Issue 6890 - run npm tests in parallel (PENDING) (Closed) Base URL: https://codereview.adblockplus.org/29862580/
Patch Set: Created Aug. 28, 2018, 8:35 a.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 | no next file » | 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 4109a810e68940c367cffb763069bc325ebf23d2..5e721531da9c250a406c2eadfabc7e024dfcf245 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,12 +14,37 @@
# along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
stages:
- - test_ext
+ - prepare
+ - test
-qunit:gecko:
- stage: test_ext
+prepare-dependencies:
+ stage: prepare
script:
- mkdir -p .git/info
- pip install --user Jinja2 cryptography
+ - python ensure_dependencies.py
Sebastian Noack 2018/08/28 11:22:55 I wonder whether this should rather go in pretest
tlucas 2018/08/28 12:21:59 Since "python build.py" - which is called anyway i
Sebastian Noack 2018/08/28 12:50:57 After your changes running the tests as well on Ch
tlucas 2018/08/29 08:14:27 Gotya. I moved "python ensure_dependencies.py" to
Sebastian Noack 2018/08/29 21:03:11 Now, we are running ensure_dependencies.py 3 times
tlucas 2018/08/30 11:05:58 Let me try to clarify the current state (chronolog
Sebastian Noack 2018/08/30 15:17:28 I agree that we should ideally have ensure_depende
tlucas 2018/09/03 09:54:45 As far as i understand (from their docs [1]) it's
Sebastian Noack 2018/09/03 19:37:35 Fair enough.
- npm install
- - npm test
+ cache:
+ key: cache_$CI_COMMIT_SHA
+ paths:
+ - ./
+ policy: push
+
+
+.test_template: &test_template
+ stage: test
+ cache:
+ key: cache_$CI_COMMIT_SHA
+ paths:
+ - ./
+ policy: pull
+
+qunit:gecko:
Sebastian Noack 2018/08/28 11:22:55 That the only thing currently performed is running
tlucas 2018/08/28 12:21:59 No plans for jobs per tests, so changed the naming
Sebastian Noack 2018/08/28 12:50:57 I know, go ahead. :)
tlucas 2018/08/29 08:14:27 Done.
+ <<: *test_template
+ script:
+ - npm test -- -g gecko
+
+qunit:chrome:
+ <<: *test_template
+ script:
+ - xvfb-run npm test -- -g chrome
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld