Skip to content

Commit

Permalink
Adds a generated project for testing babel projects
Browse files Browse the repository at this point in the history
  • Loading branch information
orta committed Aug 30, 2017
1 parent 0b023bc commit 8e5ab14
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8e5ab14

Please sign in to comment.