diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..0ca362c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +--- +# Use Ubuntu Precise instead of new default Trusty which cause build fail +# with pre installed yarn v0.17.8 +# https://github.com/facebookincubator/create-react-app/issues/3054 +# TODO: remove after Trusty environment is updated with a lastet version of yarn +dist: precise +language: node_js +node_js: + - 6 + - 8 +cache: + directories: + - node_modules + - packages/create-react-app/node_modules + - packages/react-scripts/node_modules +install: true +script: + - 'if [ $TEST_SUITE = "simple" ]; then tasks/e2e-simple.sh; fi' + - 'if [ $TEST_SUITE = "installs" ]; then tasks/e2e-installs.sh; fi' + - 'if [ $TEST_SUITE = "kitchensink" ]; then tasks/e2e-kitchensink.sh; fi' +env: + global: + - USE_YARN=no + matrix: + - TEST_SUITE=simple + - TEST_SUITE=installs + - TEST_SUITE=kitchensink +matrix: + include: + - node_js: 0.10 + env: TEST_SUITE=simple +# There's a weird Yarn/Lerna bug related to prerelease versions. +# TODO: reenable after we ship 1.0. +# - node_js: 6 +# env: USE_YARN=yes TEST_SUITE=simple