This repository has been archived by the owner on Apr 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.yml
79 lines (73 loc) · 1.94 KB
/
config.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
version: 2.1
jobs:
Build:
docker:
- image: cimg/python:3.8.8-node
steps:
- checkout
- run:
name: Install the dependencies
command: npm install
- run:
name: Build the Control Panel
command: npm run build
- run:
name: Build the Addon
command: npm run build-addon
Addon unit tests:
docker:
- image: cimg/python:3.8.8-node
steps:
- checkout
- run:
name: Install the dependencies
command: npm install
- run:
name: Build the Addon
command: npm run build-addon
- run:
name: MochaJS unit tests
command: npm run test-addon
Addon code linting:
docker:
- image: cimg/python:3.8.8-node
steps:
- checkout
- run:
name: Install the dependencies
command: npm install
- run:
name: Build the Control Panel
command: npm run build
- run:
name: Build the Addon
command: npm run build-addon
- run:
name: Run linting
command: npm run lint
Firefox integration tests:
docker:
- image: cimg/python:3.8.8-node
steps:
- checkout
- run:
name: Install the dependencies
command: npm install && sudo add-apt-repository ppa:ubuntu-mozilla-daily/ppa && sudo apt update && sudo apt install firefox-trunk
- run:
name: Build the Addon
command: npm run build-addon
- run:
name: Run Selenium tests
command: export PATH=.:$PATH && npm run test-integration
workflows:
version: 2
ci:
jobs:
- Build
- Addon unit tests
- Addon code linting
- Firefox integration tests