.travis.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Commented sections below can be used to run tests on the CI server
  2. # https://simulatedgreg.gitbooks.io/electron-vue/content/en/testing.html#on-the-subject-of-ci-testing
  3. osx_image: xcode8.3
  4. sudo: required
  5. dist: trusty
  6. language: c
  7. matrix:
  8. include:
  9. - os: osx
  10. - os: linux
  11. env: CC=clang CXX=clang++ npm_config_clang=1
  12. compiler: clang
  13. cache:
  14. directories:
  15. - node_modules
  16. - "$HOME/.electron"
  17. - "$HOME/.cache"
  18. addons:
  19. apt:
  20. packages:
  21. - libgnome-keyring-dev
  22. - icnsutils
  23. #- xvfb
  24. before_install:
  25. - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install git-lfs; fi
  26. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils; fi
  27. install:
  28. #- export DISPLAY=':99.0'
  29. #- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  30. - nvm install 10
  31. - curl -o- -L https://yarnpkg.com/install.sh | bash
  32. - source ~/.bashrc
  33. - npm install -g xvfb-maybe
  34. - yarn
  35. before_script:
  36. - git lfs pull
  37. script:
  38. #- xvfb-maybe node_modules/.bin/karma start test/unit/karma.conf.js
  39. #- yarn run pack && xvfb-maybe node_modules/.bin/mocha test/e2e
  40. - yarn run build
  41. branches:
  42. only:
  43. - master