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

Side by Side Diff: .gitlab-ci.yml

Issue 29903555: Noissue - extend jobs instead of using YAML anchors (Closed)
Patch Set: Created Oct. 6, 2018, 9:04 a.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 | no next file » | 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
(...skipping 12 matching lines...) Expand all
23 - prepare 23 - prepare
24 - test 24 - test
25 25
26 .dependencies: 26 .dependencies:
27 script: &dependencies 27 script: &dependencies
28 - mkdir -p .git/info 28 - mkdir -p .git/info
29 - pip install --user Jinja2 cryptography 29 - pip install --user Jinja2 cryptography
30 - python ensure_dependencies.py 30 - python ensure_dependencies.py
31 - "[ -d node_modules ] || npm install" 31 - "[ -d node_modules ] || npm install"
32 32
33 .test_template: &test_template 33 .test_template:
34 stage: test 34 stage: test
35 before_script: *dependencies 35 before_script: *dependencies
36 cache: 36 cache:
37 key: cache_$CI_COMMIT_SHA 37 key: cache_$CI_COMMIT_SHA
38 paths: 38 paths:
39 - ./ 39 - ./
40 policy: pull 40 policy: pull
41 41
42 42
43 prepare-dependencies: 43 prepare-dependencies:
44 stage: prepare 44 stage: prepare
45 script: *dependencies 45 script: *dependencies
46 cache: 46 cache:
47 key: cache_$CI_COMMIT_SHA 47 key: cache_$CI_COMMIT_SHA
48 paths: 48 paths:
49 - ./ 49 - ./
50 policy: push 50 policy: push
51 51
52 tests:gecko: 52 tests:gecko:
53 <<: *test_template 53 extends: .test_template
54 script: 54 script:
55 - npm run test-only -- -g gecko 55 - npm run test-only -- -g gecko
56 56
57 tests:chrome: 57 tests:chrome:
58 <<: *test_template 58 extends: .test_template
59 script: 59 script:
60 - xvfb-run npm run test-only -- -g chrome 60 - xvfb-run npm run test-only -- -g chrome
61 61
62 lint: 62 lint:
63 <<: *test_template 63 extends: .test_template
64 script: 64 script:
65 - npm run lint 65 - npm run lint
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld