Skip to content

Commit f1fa740

Browse files
authored
Merge pull request #7 from scharlton2/push_to_online_update
Changed path of copied iriclib.dll
2 parents 792d6c7 + eb19f69 commit f1fa740

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

appveyor.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ init:
3535
- FOR /F "tokens=3 delims= " %%i in ('echo %APPVEYOR_BUILD_WORKER_IMAGE%') do set YEAR=%%i
3636
- echo %YEAR%
3737
- ps: $UploadRelease = (($env:Configuration -eq "Release") -AND ($env:APPVEYOR_REPO_BRANCH -eq "master") -AND (!$env:APPVEYOR_PULL_REQUEST_NUMBER) -AND ($env:SGEN -eq "vs2013-x64"))
38+
- ps: Write-Output $UploadRelease
3839
# Only commit and push to master branch or debug-appveyor branch (for testing)
39-
- ps: $CommitAndPush = (($env:Configuration -eq "Release") -AND ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2013") -AND (($env:APPVEYOR_REPO_BRANCH -eq "master") -OR ($env:APPVEYOR_REPO_BRANCH -eq "debug-appveyor")) -AND (!$env:APPVEYOR_PULL_REQUEST_NUMBER))
40+
- ps: $CommitAndPush = (($env:Configuration -eq "Release") -AND ($env:APPVEYOR_BUILD_WORKER_IMAGE -eq "Visual Studio 2013") -AND (($env:APPVEYOR_REPO_BRANCH -eq "master") -OR ($env:APPVEYOR_REPO_BRANCH -eq "push_to_online_update")) -AND (!$env:APPVEYOR_PULL_REQUEST_NUMBER))
4041
- ps: Write-Output $CommitAndPush
4142

4243
# doesn't seem to be able to use environmental vars
@@ -197,7 +198,8 @@ on_success:
197198
198199
if ($branch) {
199200
# create branch when remote is not "i-RIC/prepost-gui"
200-
git checkout -qb $env:APPVEYOR_JOB_ID
201+
# branches starting with '__' aren't automatically built by appveyor
202+
git checkout -qb __$env:APPVEYOR_JOB_ID
201203
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
202204
}
203205
@@ -224,7 +226,7 @@ on_success:
224226
}
225227
226228
# distribute iriclib.dll
227-
copy C:\iricdev\lib\src\iriclib-git\release\iriclib.dll \online_update\dev_src\packages\gui.prepost\data\iriclib.dll
229+
Copy-Item C:\iricdev\lib\src\iriclib-git\_build_release\INSTALL\lib\iriclib.dll \online_update\dev_src\packages\gui.prepost\data\iriclib.dll -ErrorAction Stop
228230
229231
# run repogen to build packages and Updates.xml
230232
Set-Location \online_update\dev_src -ErrorAction Stop
@@ -261,12 +263,15 @@ on_success:
261263
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
262264
263265
if ($branch) {
264-
git push --set-upstream origin $env:APPVEYOR_JOB_ID 2>&1 | Out-Null
266+
git push --set-upstream origin __$env:APPVEYOR_JOB_ID 2>&1 | Out-Null
265267
} else {
266268
git push --set-upstream origin master 2>&1 | Out-Null
267269
}
268270
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
269271
270272
git status
271273
if ($LastExitCode -ne 0) { $host.SetShouldExit($LastExitCode) }
274+
275+
Write-Output "iriclib-github-sha1=`"$env:APPVEYOR_REPO_COMMIT`""
276+
Get-FileHash C:\iricdev\lib\src\iriclib-git\_build_release\INSTALL\lib\iriclib.dll
272277
}

0 commit comments

Comments
 (0)