.travis.yml 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. language: node_js
  2. node_js: '8'
  3. #cache:
  4. # yarn: true
  5. # directories:
  6. # - node_modules
  7. # - 'interface/.meteor'
  8. sudo: required
  9. matrix:
  10. include:
  11. # LINUX
  12. - os: linux
  13. dist: trusty
  14. env:
  15. - GULP_PLATFORM=linux
  16. addons:
  17. artifacts:
  18. paths:
  19. - $( ls dist_{mist,wallet}/release/* | tr "\n" ":" )
  20. apt:
  21. packages:
  22. - icnsutils
  23. - graphicsmagick
  24. - xz-utils
  25. - gcc-multilib
  26. - g++-multilib
  27. before_install:
  28. # prepare integration tests
  29. - export DISPLAY=:99.0; sh -e /etc/init.d/xvfb start
  30. # MAC
  31. - os: osx
  32. osx_image: xcode8.3
  33. env:
  34. - GULP_PLATFORM=mac
  35. addons:
  36. artifacts:
  37. paths:
  38. - $( ls dist_{mist,wallet}/release/* | tr "\n" ":" )
  39. before_install:
  40. - npm install -g yarn
  41. install:
  42. - PATH=$PATH:$HOME/.meteor && curl -L https://raw.githubusercontent.com/arunoda/travis-ci-meteor-packages/1390e0f96162d0d70fc1e60a6b0f4f891a0e8f42/configure.sh | /bin/sh
  43. - meteor --version
  44. - yarn
  45. # only code signs when on master
  46. - if [[ $TRAVIS_BRANCH != "master" ]]; then unset CSC_LINK CSC_KEY_PASSWORD; fi
  47. script:
  48. - yarn test:unit:once
  49. - yarn build:mist --$GULP_PLATFORM
  50. - yarn build:wallet --$GULP_PLATFORM
  51. - cat dist_mist/app/interface/index.html
  52. - yarn test:e2e
  53. after_success:
  54. - if [[ $TRAVIS_BRANCH == "master" ]]; then
  55. yarn dist:mist --$GULP_PLATFORM;
  56. yarn dist:wallet --$GULP_PLATFORM;
  57. fi