forked from Authenticator-Extension/Authenticator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (31 loc) · 948 Bytes
/
.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
language: node_js
node_js:
- "node"
cache: npm
stages:
- test
- deploy
jobs:
include:
- stage: test
name: "TS style check"
script: "gts check"
- stage: test
name: "lintspaces"
script: "npm i -g lintspaces-cli && lintspaces -nt -d 'spaces' -i 'js-comments' src/* view/* manifest-*.json css/popup.css css/import.css"
env: CACHE_NAME=LINTSPACES
- stage: test
name: "Build Firefox and run addons-linter"
script: "npm install --only=production addons-linter && npm run firefox && addons-linter firefox"
env: CACHE_NAME=FIREFOXLINTER
- stage: test
name: "Build Chrome"
script: "npm run chrome"
- stage: test
name: "Process new i18n strings"
script: bash scripts/i18n.sh
if: branch = dev AND type != pull_request
- stage: deploy
name: "Release tagging"
script: bash scripts/tag.sh
if: branch = release AND type != pull_request