You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.travis.yml 2.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. sudo: false
  2. dist: trusty
  3. language: node_js
  4. branches:
  5. only:
  6. - master
  7. - next
  8. cache:
  9. yarn: true
  10. directories:
  11. - ".jest-cache"
  12. - ".eslintcache"
  13. stages:
  14. - basic
  15. - advanced
  16. matrix:
  17. include:
  18. - os: linux
  19. node_js: "10"
  20. env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=basic
  21. stage: basic
  22. - os: linux
  23. node_js: "10"
  24. env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=lintunit
  25. stage: advanced
  26. - os: linux
  27. node_js: "10"
  28. env: NO_WATCH_TESTS=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
  29. stage: advanced
  30. - os: linux
  31. node_js: "10"
  32. env: NO_WATCH_TESTS=1 ALTERNATIVE_SORT=1 JEST="--maxWorkers=2 --cacheDirectory .jest-cache" JOB_PART=integration
  33. stage: advanced
  34. - os: linux
  35. node_js: "10"
  36. env:
  37. - NODEJS_VERSION=v12.0.0-nightly20190206686043e76e
  38. - YARN_EXTRA_ARGS="--ignore-engines"
  39. - NO_WATCH_TESTS=1
  40. - JEST="--maxWorkers=2 --cacheDirectory .jest-cache"
  41. - JOB_PART=integration
  42. stage: advanced
  43. fast_finish: true
  44. before_install:
  45. - |
  46. if [ "$NODEJS_VERSION" != "" ];
  47. then
  48. mkdir /opt/node
  49. curl --silent "https://nodejs.org/download/nightly/$NODEJS_VERSION/node-$NODEJS_VERSION-linux-x64.tar.gz" | tar -zxf - --directory /opt/node
  50. export PATH="/opt/node/node-$NODEJS_VERSION-linux-x64/bin:$PATH"
  51. node --version
  52. fi
  53. install:
  54. - yarn --frozen-lockfile $YARN_EXTRA_ARGS
  55. - yarn link --frozen-lockfile $YARN_EXTRA_ARGS || true
  56. - yarn link webpack --frozen-lockfile $YARN_EXTRA_ARGS
  57. script: yarn travis:$JOB_PART
  58. after_success:
  59. - cat ./coverage/lcov.info | node_modules/.bin/coveralls --verbose
  60. - bash <(curl -s https://codecov.io/bash) -F $JOB_PART -X gcov
  61. - rm -f .jest-cache/haste-map* .jest-cache/perf-cache*
  62. notifications:
  63. slack:
  64. secure: JduSdKWwbnLCwo7Z4E59SGE+Uw832UwnXzQiKEpg1BV45MYDPRiGltly1tRHmPh9OGjvGx3XSkC2tNGOBLtL4UL2SCkf012x0t7jDutKRfcv/njynl8jk8l+UhPmaWiHXDQAgGiiKdL4RfzPLW3HeVHCOWm0LKMzcarTa8tw+rE=