Skip to content

Commit

Permalink
ci: appveyor use bash deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
JaCzekanski committed Jul 31, 2019
1 parent d36e907 commit 35c8286
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 47 deletions.
8 changes: 1 addition & 7 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ environment:
TOOLSET: vs2017
platform: x64

init:
- ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

on_finish:
- ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))

# TODO: Move to PowerShell script
before_build:
- git submodule update --init --recursive
Expand Down Expand Up @@ -99,4 +93,4 @@ artifacts:
name: avocado

deploy_script:
- ps: ./.appveyor/deploy.ps1 $env:DEPLOY_KEY upload/
- bash ./.travis/deploy.sh %DEPLOY_KEY% upload/
39 changes: 0 additions & 39 deletions .appveyor/deploy.ps1

This file was deleted.

11 changes: 10 additions & 1 deletion .travis/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@ else
exit 2
fi

BRANCH=""
if [[ ! -z "${TRAVIS_BRANCH}" ]]; then
BRANCH=$TRAVIS_BRANCH
elif [[ ! -z "${APPVEYOR_REPO_BRANCH}" ]]; then
BRANCH=$APPVEYOR_REPO_BRANCH
else
echo "TRAVIS_BRANCH or APPVEYOR_REPO_BRANCH env not found"
exit 3
fi

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

0 comments on commit 35c8286

Please sign in to comment.