forked from mozilla/notes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
45 lines (41 loc) · 1.07 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
dist: xenial
language: node_js
services:
- xvfb
_aliases:
- &test
before_install:
- sleep 1
- &unit-test
env: DISPLAY=:99.0 FIREFOX_BINARY=firefox
addons:
firefox: latest
<<: *test
- &integration-test
env: DISPLAY=:99.0 MOZ_HEADLESS=1 UI_TEST_LOGGING=info GECKODRIVER_VERSION=0.21.0
addons:
firefox: latest-nightly
before_script:
- wget -O /tmp/geckodriver.tar.gz https://github.com/mozilla/geckodriver/releases/download/v${GECKODRIVER_VERSION}/geckodriver-v${GECKODRIVER_VERSION}-linux64.tar.gz
- mkdir $HOME/geckodriver && tar xvf /tmp/geckodriver.tar.gz -C $HOME/geckodriver
- export PATH=$HOME/geckodriver:$PATH
- firefox --version
- geckodriver --version
- npm run build
<<: *test
jobs:
include:
- stage:
node_js: 12
<<: *unit-test
script: npm run test:karma
- stage:
node_js: 12
script: npm run build
env: BUILD_NOTES
- stage:
node_js: 12
script: npm run lint
env: LINT
before_script: npm run build
before_install: