Skip to content

Commit

Permalink
compress the artifacts folder and push to github release page
Browse files Browse the repository at this point in the history
  • Loading branch information
nosami committed Jun 11, 2015
1 parent 8eb0a79 commit d2c259f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 21,270 deletions.
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
language: csharp
mono:
- beta
sudo: false # use the new container-based infrastructure
install: curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | sh && source ~/.dnx/dnvm/dnvm.sh && dnvm upgrade
- beta
sudo: false
install: curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh
| sh && source ~/.dnx/dnvm/dnvm.sh && dnvm upgrade
script:
- . ./build.sh
- ". ./build.sh"
deploy:
provider: releases
api_key:
secure: NZ6FmmX0b4ldqi9zeAOX3jKYq1w8+AMM+6PkgOxZaTnwX7r8JuHkysEm1VE5wr4VYrPZ1Hhb6U0mCI+kf0eh5u1ECxeiWVCUmcBDv+e3ErkLvqKWD37vaoOjb+ay8vx+VOtnsQvy6QueA3JK0Vsaiwlf806KuoPcth6WI//zZBI=
file: 'omnisharp.tar.gz'
on:
repo: OmniSharp/omnisharp-roslyn
tags: true
10 changes: 3 additions & 7 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,9 @@ rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi
cd ../../
dnvm use 1.0.0-beta4
dnu publish src/OmniSharp --configuration Release --no-source --out artifacts/build/omnisharp --runtime dnx-mono.1.0.0-beta4 2>&1 | tee buildlog
export
if ["$TRAVIS" = true] && ["$TRAVIS_PULL_REQUEST" = false]; then
OMNISHARP_VERSION=1.0.0
wget https://www.nuget.org/nuget.exe -O /tmp/nuget.exe
mono /tmp/nuget.exe push artifacts/build/omnisharp/approot/packages/OmniSharp/$OMNISHARP_VERSION/OmniSharp.$OMNISHARP_VERSION.nupkg $MYGET_AUTH -Source https://www.myget.org/F/omnisharp/api/v2/package
mono /tmp/nuget.exe push artifacts/build/omnisharp/approot/packages/OmniSharp.Stdio/$OMNISHARP_VERSION/OmniSharp.Stdio.$OMNISHARP_VERSION.nupkg $MYGET_AUTH -Source https://www.myget.org/F/omnisharp/api/v2/package
fi
# work around for kpm bundle returning an exit code 0 on failure
grep "Build failed" buildlog
rc=$?; if [[ $rc == 0 ]]; then exit 1; fi
cd artifacts/build/omnisharp
tar -zcf ../../../omnisharp.tar.gz .
cd ../../..
Loading

0 comments on commit d2c259f

Please sign in to comment.