Skip to content

Commit

Permalink
other(build): fix CI build
Browse files Browse the repository at this point in the history
  • Loading branch information
hypery2k committed Nov 6, 2016
1 parent 0210249 commit 42158b4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.idea/
node_modules/
samples/npm-debug.log
tmp/
test/
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ script:
- export PATH=$PATH:/usr/local/opt/android-sdk/tools:/usr/local/opt/android-sdk/platform-tools
- npm run clean
- npm run test
- npm run pre-e2e
- npm run e2e
#- npm run pre-e2e
#- npm run e2e
before_install:
- export ANDROID_HOME=/usr/local/opt/android-sdk
- export PATH=$PATH:/usr/local/opt/android-sdk/tools:/usr/local/opt/android-sdk/platform-tools
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "toast.js",
"typings": "index.d.ts",
"scripts": {
"clean": "git checkout samples/angular/package.json && rm -rf node_modules target tmp && mkdir tmp && cd samples/angular && rm -rf node_modules hooks platforms",
"test": "cd tmp && tns create my-test-app --ng && cd my-test-app && rm -rf platforms node_modules hooks && tns plugin add ../.. && tns install && tns build ios && tns build android",
"clean": "git checkout samples/angular/package.json && rm -rf node_modules target tmp && mkdir -p tmp && mkdir -p tmp/angular && cd samples/angular && rm -rf node_modules hooks platforms",
"test": "cd tmp/angular && cp -rp ../../samples/angular/* . && rm -rf platforms node_modules hooks && tns plugin add ../.. && tns install && tns build ios && tns build android",
"pre-e2e": "cd samples/angular && tns install && tns platform add ios && tns platform add android && tns build ios && tns build android",
"e2e": "cd samples/angular && tns test ios --emulator --justlaunch",
"changelog":" conventional-changelog -p angular -i CHANGELOG.md -s",
Expand Down

0 comments on commit 42158b4

Please sign in to comment.