.travis.yml 936 Bytes
Newer Older
Alex Brazier's avatar
Alex Brazier committed
1
language: node_js
2
node_js: 8
Alex Brazier's avatar
Alex Brazier committed
3
cache:
Gabriel Delavald's avatar
Gabriel Delavald committed
4
  yarn: true
Alex Brazier's avatar
Alex Brazier committed
5 6 7
  directories:
    - node_modules

8 9 10
matrix:
  include:
  - os: linux
Rodrigo Nascimento's avatar
Rodrigo Nascimento committed
11
    dist: trusty
Gabriel Engel's avatar
Gabriel Engel committed
12
    sudo: true
Alex Brazier's avatar
Alex Brazier committed
13 14 15 16 17 18
    addons:
      apt:
        packages:
          - rpm
          - g++-multilib
          - libxss-dev:i386
19
          - snapd
20
  - os: osx
Alex Brazier's avatar
Alex Brazier committed
21 22
    osx_image: xcode8.3

23 24 25 26
branches:
  only:
    - master
    - develop
Tasso Evangelista's avatar
Tasso Evangelista committed
27 28
    - /^hotfix\/.*$/
    - /^release\/.*$/
Александр's avatar
Александр committed
29 30 31 32 33

notifications:
  email:
    on_success: never
    on_failure: change
Tasso Evangelista's avatar
Tasso Evangelista committed
34 35 36 37 38 39 40 41 42 43

before_install:
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo snap install snapcraft --classic; fi

install:
  - yarn
  - yarn list

script:
  - if [[ "$TRAVIS_PULL_REQUEST" != "false" ]]; then export CSC_IDENTITY_AUTO_DISCOVERY=false; fi
44 45 46 47 48 49 50 51
  # e2e tests should be performed only on Linux
  - |
    if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      export DISPLAY=:99.0
      sh -e /etc/init.d/xvfb start
      sleep 3
      yarn e2e
    fi
Tasso Evangelista's avatar
Tasso Evangelista committed
52
  - yarn release