.travis.yml 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. - mkdir -p /tmp/git-lfs && curl -L https://github.com/github/git-lfs/releases/download/v1.2.1/git-lfs-$([
  26. "$TRAVIS_OS_NAME" == "linux" ] && echo "linux" || echo "darwin")-amd64-1.2.1.tar.gz
  27. | tar -xz -C /tmp/git-lfs --strip-components 1 && /tmp/git-lfs/git-lfs pull
  28. - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils; fi
  29. install:
  30. #- export DISPLAY=':99.0'
  31. #- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
  32. - nvm install 10
  33. - curl -o- -L https://yarnpkg.com/install.sh | bash
  34. - source ~/.bashrc
  35. - npm install -g xvfb-maybe
  36. - yarn
  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