diff --git a/.travis.yml b/.travis.yml index 145c259..29ac51f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -40,11 +40,11 @@ before_script: - sh -e /etc/init.d/xvfb start script: - - ng test --watch=false # unit tests - - npm run ionic:build # ionic build + - ng test --watch=false --code-coverage # unit tests + - npm run ionic:build # ionic build # Serve with python as ionic serve needs interaction - cd www && python -m SimpleHTTPServer 8100 >> python_serve.log 2>&1 & - - npm run e2e # run e2e tests against ionic + - npm run e2e # run e2e tests against ionic after_failure: - cat $TRAVIS_BUILD_DIR/python_serve.log @@ -52,7 +52,7 @@ after_failure: after_success: # Send coverage info off to cloud ppl - - cat coverage/lcov.info | ./node_modules/.bin/codecov + - ./node_modules/.bin/codecov before_deploy: # start install android diff --git a/package.json b/package.json index 9fe5651..a78e1f6 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@types/jasmine": "2.5.38", "@types/node": "6.0.42", "angular-cli": "1.0.0-beta.24", + "codecov": "1.0.1", "jasmine-core": "2.5.2", "jasmine-spec-reporter": "2.7.0", "karma": "1.3.0",