| Left: | ||
| Right: |
| LEFT | RIGHT |
|---|---|
| 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 - install | |
| 18 - test_ext | 17 - test_ext |
|
sergei
2018/08/24 14:20:07
I'm also not sure that it's already time to introd
| |
| 19 | 18 |
| 20 .gecko_branch: &gecko_branch | 19 qunit:gecko: |
|
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
| |
| 21 only: | |
| 22 - branches | |
| 23 | |
| 24 prepare-dependencies: | |
| 25 stage: install | |
| 26 script: | |
| 27 - 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
| |
| 28 - 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.
| |
| 29 - python ensure_dependencies.py | |
| 30 - npm install | |
| 31 cache: | |
| 32 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
| |
| 33 paths: | |
| 34 - ./ | |
| 35 policy: push | |
| 36 | |
| 37 # reusable template for browser-test jobs | |
| 38 .browser_test_t: &browser_test | |
| 39 stage: test_ext | 20 stage: test_ext |
| 40 script: | 21 script: |
| 41 - npm test -- $TARGET | 22 - mkdir -p .git/info |
| 42 cache: | 23 - pip install --user Jinja2 cryptography |
|
sergei
2018/08/24 14:20:07
I would also think about adding of `pip install -U
| |
| 43 key: cache_$CI_COMMIT_SHA | 24 - npm install |
|
sergei
2018/08/24 13:19:23
what about moving all these steps but `npm test` i
tlucas
2018/08/24 13:35:22
By the time we introduce more stages (building / d
sergei
2018/08/24 14:20:08
I personally don't find caching of such things as
| |
| 44 paths: | 25 - npm test |
| 45 - ./ | |
| 46 policy: pull | |
| 47 environment: | |
| 48 name: devbuilds | |
| 49 | |
| 50 # Invoke browser tests | |
| 51 | |
| 52 qunit:gecko: | |
| 53 variables: | |
| 54 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.
| |
| 55 <<: *browser_test | |
| 56 <<: *gecko_branch | |
| LEFT | RIGHT |