Skip to content

Commit

Permalink
Refactor ci script
Browse files Browse the repository at this point in the history
  • Loading branch information
godu committed Nov 10, 2015
1 parent 39919b3 commit 3210c9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
10 changes: 1 addition & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,4 @@ node_js:
- "4.2"
- "5.0"

before_install:
- npm install -g grunt-cli
- npm install -g react-native-cli

script:
- grunt build
- react-native bundle --root src --platform ios --minify
- react-native bundle --root src --platform android --minify
- npm test
script: npm run ci
12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,13 @@
"mainOutput": "main",
"main": "index.nw.html",
"scripts": {
"build": "node_modules/.bin/grunt build",
"serve-nw": "node_modules/.bin/grunt serve-nw",
"serve-web": "node_modules/.bin/grunt serve-web",
"serve-web:dist": "node_modules/.bin/grunt serve-web:dist",
"build": "grunt build",
"travis": "npm run build && npm run react-native:ios && npm run react-native:android && npm test",
"react-native:ios": "react-native bundle --root src --platform ios --minify",
"react-native:android": "react-native bundle --root src --platform android --minify",
"serve-nw": "grunt serve-nw",
"serve-web": "grunt serve-web",
"serve-web:dist": "grunt serve-web:dist",
"start": "node_modules/react-native/packager/packager.sh",
"test": "jest"
},
Expand Down Expand Up @@ -61,6 +64,7 @@
"react": "^0.14.2",
"react-dom": "^0.14.2",
"react-native": "^0.13.2",
"react-native-cli": "^0.1.7",
"react-router": "^1.0.0-rc4",
"serve-static": "^1.10.0",
"uniqid": "^1.0.0"
Expand Down

0 comments on commit 3210c9c

Please sign in to comment.