aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 4ad1031c4b1c8f5e7f0b19e7f75b7ad7e2e565b7 (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
matrix:
  include:
    - os: osx
      osx_image: xcode9.4
      language: node_js
      node_js: '12'

    - os: linux
      language: node_js
      node_js: '12'
      addons:
        apt:
          sources:
            - ubuntu-toolchain-r-test
          packages:
            - libx11-dev
            - zlib1g-dev
            - libpng12-dev
            - libxtst-dev
            - g++-4.8
            - gcc-4.8

before_script:
  - | # Fix chrome-sandbox: https://github.com/electron/electron/issues/17972
      if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
        echo "Fixing chrome-sandbox permissions..."
        sudo chown root ./node_modules/electron/dist/chrome-sandbox
        sudo chmod 4755 ./node_modules/electron/dist/chrome-sandbox
      fi
script:
  - npm run dist