Browse Source

Merge pull request #3196 from AFNetworking/feature/codecov

Added support for Codecov.io
Kevin Harwood 9 years ago
parent
commit
957f18ba37
2 changed files with 7 additions and 2 deletions
  1. 5 0
      .travis.yml
  2. 2 2
      fastlane/Fastfile

+ 5 - 0
.travis.yml

@@ -7,6 +7,7 @@ env:
   - LANG=en_US.UTF-8
   - FASTLANE_LANE=ci_commit
   matrix:
+    - FASTLANE_LANE=code_coverage FASTLANE_ENV=default
     - FASTLANE_ENV=ios81
     - FASTLANE_ENV=ios82
     - FASTLANE_ENV=ios83
@@ -23,6 +24,10 @@ script:
   - set -o pipefail
   - fastlane $FASTLANE_LANE configuration:Debug --env $FASTLANE_ENV
   - fastlane $FASTLANE_LANE configuration:Release --env $FASTLANE_ENV
+after_success:
+  - if [ "$FASTLANE_LANE" == "code_coverage" ]; then
+     bash <(curl -s https://codecov.io/bash);
+    fi
 after_failure:
  - cat -n ~/Library/Logs/scan/*
  - cat -n $TMPDIR/com.apple.dt.XCTest-status/Session*.log

+ 2 - 2
fastlane/Fastfile

@@ -1,4 +1,4 @@
 import_from_git(
   url: 'https://github.com/AFNetworking/fastlane.git', 
-  branch: '0.0.3'
-)
+  branch: '0.0.4'
+)