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

Side by Side 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 Sept. 3, 2018, 9:32 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | package.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # This file is part of Adblock Plus <https://adblockplus.org/>, 1 # This file is part of Adblock Plus <https://adblockplus.org/>,
2 # Copyright (C) 2006-present eyeo GmbH 2 # Copyright (C) 2006-present eyeo GmbH
3 # 3 #
4 # Adblock Plus is free software: you can redistribute it and/or modify 4 # Adblock Plus is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License version 3 as 5 # it under the terms of the GNU General Public License version 3 as
6 # published by the Free Software Foundation. 6 # published by the Free Software Foundation.
7 # 7 #
8 # Adblock Plus is distributed in the hope that it will be useful, 8 # Adblock Plus is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details. 11 # GNU General Public License for more details.
12 # 12 #
13 # You should have received a copy of the GNU General Public License 13 # You should have received a copy of the GNU General Public License
14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. 14 # along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>.
15 15
16 stages: 16 stages:
17 - test_ext 17 - prepare
18 - test
18 19
19 qunit:gecko: 20 .dependencies:
tlucas 2018/09/03 21:35:54 I noticed that i only cache nodejs and adblockplus
20 stage: test_ext 21 script: &dependencies
21 script:
22 - mkdir -p .git/info 22 - mkdir -p .git/info
23 - pip install --user Jinja2 cryptography 23 - pip install --user Jinja2 cryptography
24 - npm install 24 - python ensure_dependencies.py
25 - npm test 25 - if [ ! -d "node_modules" ]; then npm install; fi
Sebastian Noack 2018/09/03 21:57:47 This could be done simpler: [ -d node_modules ]
tlucas 2018/09/04 07:19:37 Done.
26
27 prepare-dependencies:
28 stage: prepare
29 script: *dependencies
30 cache:
31 key: cache_$CI_COMMIT_SHA
32 paths:
33 - ./
34 policy: push
35
36
37 .test_template: &test_template
38 stage: test
39 before_script: *dependencies
40 cache:
41 key: cache_$CI_COMMIT_SHA
42 paths:
43 - ./
44 policy: pull
45
46
47 tests:gecko:
48 <<: *test_template
49 script:
50 - npm test -- -g gecko
51
52 tests:chrome:
53 <<: *test_template
54 script:
55 - xvfb-run npm test -- -g chrome
56
57 lint:
58 <<: *test_template
59 script:
60 - npm run lint
OLDNEW
« no previous file with comments | « no previous file | package.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld