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

Side by Side Diff: .gitlab-ci.yml

Issue 29905561: Noissue - build before testing (Closed)
Patch Set: Created Oct. 9, 2018, 12:34 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 | 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
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 # NOTE: 16 # NOTE:
17 # This CI configuration is meant to be run on private runners, which can be 17 # This CI configuration is meant to be run on private runners, which can be
18 # provisioned with the Ansible roles from 18 # provisioned with the Ansible roles from
19 # https://gitlab.com/eyeo/devops/ansible-role-adblockplus-builder and 19 # https://gitlab.com/eyeo/devops/ansible-role-adblockplus-builder and
20 # https://gitlab.com/eyeo/devops/ansible-role-gitlab-runner 20 # https://gitlab.com/eyeo/devops/ansible-role-gitlab-runner
21 21
22 stages: 22 stages:
23 - prepare 23 - prepare
24 - build
24 - test 25 - test
25 - build
26 26
27 .dependencies: 27 .dependencies:
28 script: &dependencies 28 script: &dependencies
29 - mkdir -p .git/info 29 - mkdir -p .git/info
30 - pip install --user Jinja2 cryptography 30 - pip install --user Jinja2 cryptography
31 - python ensure_dependencies.py 31 - python ensure_dependencies.py
32 - "[ -d node_modules ] || npm install" 32 - "[ -d node_modules ] || npm install"
33 33
34 .pull_cache: 34 .pull_cache:
35 cache: 35 cache:
(...skipping 14 matching lines...) Expand all
50 only: 50 only:
51 - master 51 - master
52 script: 52 script:
53 - python build.py build -t $PLATFORM 53 - python build.py build -t $PLATFORM
54 artifacts: 54 artifacts:
55 paths: 55 paths:
56 - adblockplusfirefox-*.xpi 56 - adblockplusfirefox-*.xpi
57 - adblockpluschrome-*.zip 57 - adblockpluschrome-*.zip
58 - adblockplusedge-*.appx 58 - adblockplusedge-*.appx
59 59
60 prepare-dependencies:
61 stage: prepare
62 script: *dependencies
63 cache:
64 key: cache_$CI_COMMIT_SHA
65 paths:
66 - ./
67 policy: push
68
69 test:gecko:
70 extends: .test_template
71 script:
72 - npm run test-only -- -g gecko
73
74 test:chrome:
75 extends: .test_template
76 script:
77 - xvfb-run npm run test-only -- -g chrome
78
79 lint: 60 lint:
80 extends: .test_template 61 extends: .test_template
81 script: 62 script:
82 - npm run lint 63 - npm run lint
83 64
84 build:chrome: 65 build:chrome:
85 extends: .build 66 extends: .build
86 variables: 67 variables:
87 PLATFORM: chrome 68 PLATFORM: chrome
88 69
89 build:gecko: 70 build:gecko:
90 extends: .build 71 extends: .build
91 variables: 72 variables:
92 PLATFORM: gecko 73 PLATFORM: gecko
93 74
94 build:edge: 75 build:edge:
95 extends: .build 76 extends: .build
96 variables: 77 variables:
97 PLATFORM: edge 78 PLATFORM: edge
98 # see https://issues.adblockplus.org/ticket/7024 79 # see https://issues.adblockplus.org/ticket/7024
99 allow_failure: true 80 allow_failure: true
81
tlucas 2018/10/09 12:36:58 Moving these lines is not necessary, but i figured
82 prepare-dependencies:
83 stage: prepare
84 script: *dependencies
85 cache:
86 key: cache_$CI_COMMIT_SHA
87 paths:
88 - ./
89 policy: push
90
91 test:gecko:
92 extends: .test_template
93 script:
94 - npm run test-only -- -g gecko
95
96 test:chrome:
97 extends: .test_template
98 script:
99 - xvfb-run npm run test-only -- -g chrome
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