summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: f00d7a97c4d85ef60ae399ed64a2430cc4ca5ef3 (plain)
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
sudo: false
dist: xenial
language: node_js
node_js:
  - "6"
  - "8"
  - "10"

matrix:
  include:
    - node_js: "10"
      addons:
        firefox: "60.0"
      env: BROWSER=true MAKE_TEST=true
env:
  matrix: BROWSER=false MAKE_TEST=false

after_success: npm run coveralls

before_install:
  - sudo apt-get install -y make

# Needed to run Karma with Firefox on Travis
# http://karma-runner.github.io/0.13/plus/travis.html
before_script:
  - export DISPLAY=:99.0
  - sh -e /etc/init.d/xvfb start

script:
  - "[ $BROWSER == true ] || npm test"
  # ensure buildable
  - "[ $MAKE_TEST == false ] || make --version"
  - "[ $MAKE_TEST == false ] || make list"
  - "[ $MAKE_TEST == false ] || make -j 4"
  # test in firefox
  - "[ $BROWSER == false ] || npm run mocha-browser-test"