Skip to content

Commit daabf9a

Browse files
committed
Moved the remote script to be a local script
1 parent 9f3b7a7 commit daabf9a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pull_requests:
1010
# VERSION_SUFFIX: -preview
1111

1212
init:
13-
- ps: iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/PureKrome/0f79e25693d574807939/raw/8cf3160c9516ef1f4effc825c0a44acc918a0b5a/appveyor-build-info.ps'))
13+
- ps: .\tools\DisplayEnvironmentInfo.ps1
1414
- git config --global core.autocrlf true
1515
- ps: $env:GIT_HASH=$env:APPVEYOR_REPO_COMMIT.Substring(0, 10)
1616
- ps: If ("$env:APPVEYOR_REPO_TAG" -ne "true") { $env:VERSION_SUFFIX="-pre" }

tools/DisplayEnvironmentInfo.ps1

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
$isPr = "No";
2+
if ($env:APPVEYOR_PULL_REQUEST_NUMBER)
3+
{
4+
$isPr = "Yes = PR #: " + $env:APPVEYOR_PULL_REQUEST_NUMBER
5+
}
6+
7+
Write-Host " *** AppVeyor configuration information ***" -ForegroundColor Yellow
8+
" Account Name: " + $env:APPVEYOR_ACCOUNT_NAME
9+
Write-Host " Version: $env:APPVEYOR_BUILD_VERSION" -ForegroundColor Red
10+
" Git Repo"
11+
" - Name: " + $env:APPVEYOR_REPO_NAME
12+
" - Branch: " + $env:APPVEYOR_REPO_BRANCH
13+
Write-Host " - Info: $env:APPVEYOR_REPO_COMMIT / $env:APPVEYOR_REPO_COMMIT_AUTHOR / $env:APPVEYOR_REPO_COMMIT_TIMESTAMP" -ForegroundColor Gray
14+
Write-Host " '$env:APPVEYOR_REPO_COMMIT_MESSAGE'" -ForegroundColor Gray
15+
" - Is a PR: " + $isPr
16+
" Platform: " + $env:PLATFORM
17+
" Configuration: " + $env:CONFIGURATION
18+
" --------------------------------------------------------------------------"
19+
""

0 commit comments

Comments
 (0)