.travis.yml 930 B

123456789101112131415161718192021222324252627282930313233343536
  1. osx_image: xcode8.3
  2. sudo: required
  3. dist: trusty
  4. language: c
  5. matrix:
  6. include:
  7. - os: osx
  8. - os: linux
  9. env: CC=clang CXX=clang++ npm_config_clang=1
  10. compiler: clang
  11. cache:
  12. directories:
  13. - node_modules
  14. - "$HOME/.electron"
  15. - "$HOME/.cache"
  16. addons:
  17. apt:
  18. packages:
  19. - libgnome-keyring-dev
  20. - icnsutils
  21. before_install:
  22. - mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v1.2.1/git-lfs-$([
  23. "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-1.2.1.tar.gz
  24. | tar -xz -C /tmp/git-lfs --strip-components 1 && /tmp/git-lfs/git-lfs pull
  25. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils; fi
  26. install:
  27. - nvm install 10
  28. - curl -o- -L https://yarnpkg.com/install.sh | bash
  29. - source ~/.bashrc
  30. - npm install -g xvfb-maybe
  31. - yarn
  32. script:
  33. - yarn run build
  34. branches:
  35. only:
  36. - master