This repository has been archived by the owner on Feb 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.travis.yml
116 lines (111 loc) · 2.9 KB
/
.travis.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
_aliases:
- &node
addons:
firefox: latest
language: node_js
node_js: stable
cache:
directories:
- node_modules
cache: pip
sudo: required
jobs:
include:
- stage:
language: python
python: 3.6
addons:
firefox: latest-nightly
apt:
packages:
- jwm
env: TOXENV=integration-tests MOZ_HEADLESS=1 GECKODRIVER=0.21.0
before_install:
- wget -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER/geckodriver-v$GECKODRIVER-linux64.tar.gz
- mkdir $HOME/geckodriver && tar xvf /tmp/geckodriver.tar.gz -C $HOME/geckodriver
- export PATH=$HOME/geckodriver:$PATH
- firefox --version
- geckodriver --version
install:
- nvm install node
- pip install tox
before_script:
- npm install
- npm run package
script: tox
after_success: skip
before_deploy: skip
- stage:
language: python
python: 3.6
addons:
firefox: latest-nightly
apt:
packages:
- jwm
env: TOXENV=accessibility MOZ_HEADLESS=1 GECKODRIVER=0.21.0
before_install:
- wget -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v$GECKODRIVER/geckodriver-v$GECKODRIVER-linux64.tar.gz
- mkdir $HOME/geckodriver && tar xvf /tmp/geckodriver.tar.gz -C $HOME/geckodriver
- export PATH=$HOME/geckodriver:$PATH
- firefox --version
- geckodriver --version
install:
- nvm install node
- pip install tox
before_script:
- npm install
- npm run package
script: tox -e a11y
after_success: skip
before_deploy: skip
- stage:
language: python
python: 3.6
env: TOXENV=flake8
install:
- pip install tox
script: tox
after_success: skip
before_deploy: skip
- stage:
<<: *node
before_deploy: skip
# Re-enable this when `documentation` updates to support Babel 7.
# - stage: deploy
# if: branch = master
# <<: *node
# python: '3.6'
# script: skip
# deploy:
# edge:
# branch: v1.8.47
# provider: pages
# on:
# branch: master
# skip_cleanup: true
# local_dir: site
# github_token: $GITHUB_TOKEN
# deploy tags to GitHub Releases
- stage: deploy
if: tag =~ ^\d.\d.\d
<<: *node
script: skip
deploy:
provider: releases
on:
tags: true
skip_cleanup: true
file_glob: true
file: addon.xpi
api_key: $GITHUB_TOKEN
script:
- STRICT_LINT=1 npm run test
- npx nsp check || true
after_success:
- npm run codecov
before_deploy:
- pip install --user mkdocs
- npm run package
# Re-enable this when `documentation` updates to support Babel 7.
# - npm run doc