Don't build packages for pull requests
Since we don't want to build packages for pull requests (as they cannot get archived as artifacts), we need a slightly different build command, and moving it to a script was cleaner.
This commit is contained in:
parent
ea930d3346
commit
af9c4cb673
@ -9,19 +9,23 @@ osx_image: xcode8
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
- GITHUB_TOKEN=a27573e27bea23fb05393ead69511b09e3b224be
|
- GITHUB_TOKEN=a27573e27bea23fb05393ead69511b09e3b224be
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.dotnet
|
- $HOME/.dotnet
|
||||||
- $HOME/.nuget
|
- $HOME/.nuget
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
artifacts:
|
artifacts:
|
||||||
s3_region: "us-west-2"
|
s3_region: "us-west-2"
|
||||||
paths: $(ls powershell*{deb,pkg} | tr "\n" ":")
|
paths: $(ls powershell*{deb,pkg} | tr "\n" ":")
|
||||||
|
|
||||||
git:
|
git:
|
||||||
submodules: false
|
submodules: false
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- git config --global url.git@github.com:.insteadOf https://github.com/
|
- git config --global url.git@github.com:.insteadOf https://github.com/
|
||||||
- git submodule update --init
|
- git submodule update --init
|
||||||
- (cd tools && ./download.sh)
|
- (cd tools && ./download.sh)
|
||||||
script:
|
|
||||||
- ulimit -n 4096; powershell -c "Import-Module ./build.psm1; Start-PSBootstrap -Package; Start-PSBuild -Publish; Start-PSPackage; Start-PSPester; Start-PSxUnit"
|
script: ./tools/travis.sh
|
||||||
|
7
tools/travis.sh
Executable file
7
tools/travis.sh
Executable file
@ -0,0 +1,7 @@
|
|||||||
|
ulimit -n 4096
|
||||||
|
# Only build packages for branches, not pull requests
|
||||||
|
if [[ $TRAVIS_PULL_REQUEST == false ]]; then
|
||||||
|
powershell -c "Import-Module ./build.psm1; Start-PSBootstrap -Package; Start-PSBuild -Publish; Start-PSPackage; Start-PSPester; Start-PSxUnit"
|
||||||
|
else
|
||||||
|
powershell -c "Import-Module ./build.psm1; Start-PSBootstrap; Start-PSBuild; Start-PSPester; Start-PSxUnit"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user