.travis.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. dist: trusty
  2. sudo: false
  3. group: beta
  4. language: node_js
  5. node_js:
  6. - "8"
  7. cache:
  8. directories:
  9. - node_modules
  10. jobs:
  11. # XXX fast_finish doesn't work with stages yet. See
  12. # https://github.com/travis-ci/travis-ci/issues/8425
  13. # --elopio - 20180531
  14. fast_finish: true
  15. allow_failures:
  16. - env: SOLIDITY_COVERAGE=true
  17. - env: SOLC_NIGHTLY=true
  18. include:
  19. # Run the unit test suite three times in parallel.
  20. # The first one gets results faster and is the only one required to pass.
  21. # The second one generates the coverage report.
  22. # The third one is to keep us informed about possible issues with the
  23. # upcoming solidity release.
  24. - stage: tests
  25. name: "unit tests"
  26. script: npm run test
  27. - stage: tests
  28. name: "unit tests with coverage"
  29. script: npm run test
  30. env: SOLIDITY_COVERAGE=true
  31. - stage: tests
  32. name: "unit tests with solc nightly"
  33. script: npm run test
  34. env: SOLC_NIGHTLY=true
  35. # solidity and javascript style tests.
  36. - stage: tests
  37. name: "static tests"
  38. script: npm run lint
  39. - stage: update docs
  40. if: tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$
  41. addons:
  42. apt:
  43. packages:
  44. - curl
  45. script:
  46. - ./scripts/ci/trigger_docs_update "${TRAVIS_TAG}"
  47. notifications:
  48. slack:
  49. rooms:
  50. - secure: uEhwUkuwJp5pBNh+VTEytPHz3FDKsnPrKO+8MTAKv5hKi4PCRoVhLv6pklr82HUpL6pvSvJbUPA0HVebOXA+MMSxdny/BHZTh2mtw5Y78l2Ad0svDTWuV2Lus2pmhYigRhT0Wo00/SRX9+pxm0kg4EIFJSTS+uR9G76x0l9NljpEGXrqxlDxjxoHBgk8Ciru2LHaLzX/utE3jlABts4Sb1F3wc2BwFkjd6BDCRTGAPhVJwwFk41ZfnmLVbgSNUyk46Cb38oG5oXHb0FI3d3jV/k1OUhRyFfmA2fLXRk0wavibW8TG1gGJJWZ7xTCKzw/Cvup6mpehSAeQef8eekMdjpWEhF9hYRq1BvOs0384UU8NQ0O+BtdXU+X3Nyr84TMJN/iIfgN7gYX7AsvXH3jC0JfNUcIkWlJvyXdE6l2GV1hMmhL09GFEBbSpuSXRIWlOXTcYBlp5NbvE8xO8PUW+T6N5RG2XXjv1g8wCpr6Wwk1+LmRkX5trv8MFBZ2pM8p4H5da5++Ov8egLonNGK2jbx6aBLBX3tPf+g70LZEkiQ4eBfZw8VIgXIvKreisicppNuCD27gNmSEPNt0NkwiEBcTCJ9GSVAO0CU2g4ggvHDX2A+RW5XPET9bGkBXKLfFyV7Qe+MSQjXkCnW3bIRh7Wo1V31XiUiYOLuZPIiH3EQ=
  51. on_success: change
  52. on_failure: always
  53. on_pull_requests: false