Skip to content

Commit a898d1f

Browse files
author
Landon Reed
authored
Merge pull request #198 from conveyal/dev
Merge codecov changes into master
2 parents b14015c + d64cc38 commit a898d1f

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.travis.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -64,19 +64,20 @@ notifications:
6464

6565
# Push results to codecov.io and run semantic-release (releases only created on pushes to the master branch).
6666
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
7067
# this first codecov run will upload a report associated with the commit set through Travis CI environment variables
7168
- 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.
7676
# See https://github.com/conveyal/gtfs-lib/issues/193.
7777
#
7878
# The git commands get the commit hash of the HEAD commit and the commit just before HEAD.
7979
- |
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
8081
if [[ "$TRAVIS_BRANCH" = "master" ]]; then
8182
bash <(curl -s https://codecov.io/bash) -C "$(git rev-parse HEAD)"
8283
bash <(curl -s https://codecov.io/bash) -C "$(git rev-parse HEAD^)"

0 commit comments

Comments
 (0)