@@ -64,19 +64,20 @@ notifications:
64
64
65
65
# Push results to codecov.io and run semantic-release (releases only created on pushes to the master branch).
66
66
after_success :
67
- - semantic-release --prepare @conveyal/maven-semantic-release --publish @semantic-release/github,@conveyal/maven-semantic-release --verify-conditions @semantic-release/github,@conveyal/maven-semantic-release --verify-release @conveyal/maven-semantic-release --use-conveyal-workflow --dev-branch=dev
68
- # run codecov after semantic-release because maven-semantic-release creates extra commits that
69
- # codecov will need a report on to reference in future PRs to the release branch
70
67
# this first codecov run will upload a report associated with the commit set through Travis CI environment variables
71
68
- bash <(curl -s https://codecov.io/bash)
72
- # Since the above codecov run is associated with the commit that initiated the Travis build, the report will not be
73
- # associated with the commits that maven-semantic-release performed (if it ended up creating a release and the two
74
- # commits that were a part of that workflow). Therefore, if on master codecov needs to be ran two more times to create
75
- # codecov reports for the commits made by maven-semantic-release.
69
+ # run maven-semantic-release to potentially create a new release of gtfs-lib.
70
+ #
71
+ # If maven-semantic-release finishes successfully and the current branch is master, upload coverage reports for the
72
+ # commits that maven-semantic-release generated. Since the above codecov run is associated with the commit that
73
+ # initiated the Travis build, the report will not be associated with the commits that maven-semantic-release performed
74
+ # (if it ended up creating a release and the two commits that were a part of that workflow). Therefore, if on master
75
+ # codecov needs to be ran two more times to create codecov reports for the commits made by maven-semantic-release.
76
76
# See https://github.com/conveyal/gtfs-lib/issues/193.
77
77
#
78
78
# The git commands get the commit hash of the HEAD commit and the commit just before HEAD.
79
79
- |
80
+ semantic-release --prepare @conveyal/maven-semantic-release --publish @semantic-release/github,@conveyal/maven-semantic-release --verify-conditions @semantic-release/github,@conveyal/maven-semantic-release --verify-release @conveyal/maven-semantic-release --use-conveyal-workflow --dev-branch=dev
80
81
if [[ "$TRAVIS_BRANCH" = "master" ]]; then
81
82
bash <(curl -s https://codecov.io/bash) -C "$(git rev-parse HEAD)"
82
83
bash <(curl -s https://codecov.io/bash) -C "$(git rev-parse HEAD^)"
0 commit comments