Skip to content

Commit

Permalink
ci: added branch info
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Jul 29, 2019
1 parent 79b15f7 commit 5917473
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,17 @@ else
fi

REVISION="$(git rev-parse --short=7 HEAD)"
BRANCH=$TRAVIS_BRANCH
AUTHOR="$(git log -1 "$REVISION" --pretty="%aN")"
DATE="$(git log -1 "$REVISION" --pretty="%aI")"
MESSAGE="$(git log -1 "$REVISION" --pretty="%s")"
DATE="$(git log -1 "$REVISION" --pretty="%aI")"

curl -X POST \
-H "Authorization: Bearer $1" \
-H "X-Commit-Revision: $REVISION" \
-H "X-Commit-Branch: $BRANCH" \
-H "X-Commit-Author: $AUTHOR" \
-H "X-Commit-Date: $DATE" \
-H "X-Commit-Message: $MESSAGE" \
-H "X-Commit-Date: $DATE" \
$FILES -L \
https://avocado-builds.czekanski.info/api/upload
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ See [Avocado compatibility list](https://avocado-db.czekanski.info)

Build | Status | Download
--------|--------|---------
Travis CI (Linux) | [![Build Status](https://avocado-builds.czekanski.info/status/linux)](https://travis-ci.org/JaCzekanski/Avocado) |
Travis CI (Linux) | [![Build Status](https://avocado-builds.czekanski.info/status/linux64)](https://travis-ci.org/JaCzekanski/Avocado) |
Travis CI (macOS) | [![Build Status](https://avocado-builds.czekanski.info/status/macos)](https://travis-ci.org/JaCzekanski/Avocado) | [develop](https://avocado-builds.czekanski.info/latest/macos)
Travis CI (Android) | [![Build Status](https://avocado-builds.czekanski.info/status/android)](https://travis-ci.org/JaCzekanski/Avocado) | [develop](https://avocado-builds.czekanski.info/latest/android)
AppVeyor (Windows 64-bit, Visual Studio 2019) | [![Build status](https://ci.appveyor.com/api/projects/status/h1cs3bj1vhskjxgx/branch/develop?svg=true)](https://ci.appveyor.com/project/JaCzekanski/avocado/branch/develop) | **[develop](https://ci.appveyor.com/api/projects/JaCzekanski/avocado/artifacts/avocado.zip?branch=develop&job=Environment%3A+APPVEYOR_BUILD_WORKER_IMAGE%3DVisual+Studio+2019+Preview%2C+TOOLSET%3Dvs2017%2C+platform%3Dx64)**
Expand Down

0 comments on commit 5917473

Please sign in to comment.