diff --git a/.travis.yml b/.travis.yml index 4bcd71dac..517c2e7c8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,19 +18,31 @@ matrix: - greenkeeper-lockfile-upload - node_js: '6' - - node_js: '8' - before_script: + - node_js: '7' + script: - yarn build - mkdir danger_blank_test - cd danger_blank_test - yarn init --yes - yarn add file:.. - - echo "" > dangerfile.js - - echo "Testing a blank Dangerfile on a fresh project" + - echo "warn('I warned you')" > dangerfile.js + - echo "Testing a blank Dangerfile on an empty project" - yarn danger -- run --text-only - cd .. - rm -rf danger_blank_test + - npm install -g create-react-app + - create-react-app danger_babel_test + - cd danger_babel_test + - yarn add file:.. + - echo "warn('I warned you')" > dangerfile.js + - echo "Testing a blank Dangerfile on a babel CRA project" + - yarn danger -- run --text-only + - cd .. + - rm -rf danger_babel_test + + - node_js: '8' + script: - yarn lint - yarn add jest