Skip to content

Commit

Permalink
CI again!
Browse files Browse the repository at this point in the history
  • Loading branch information
llafuente committed Jan 17, 2017
1 parent f40c8b3 commit 80b6d83
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 2 additions & 0 deletions Scripts/ci-windows-install.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
Write-Host "$(date) Start build script"-ForegroundColor green

.\enable-desktop

Invoke-WebRequest "http://netstorage.unity3d.com/unity/01f4c123905a/Windows64EditorInstaller/UnitySetup64-5.4.3f1.exe" -OutFile .\UnitySetup64.exe

Start-Process -FilePath ".\UnitySetup64.exe" -Wait -ArgumentList ('/S', '/Q')
Expand Down
8 changes: 4 additions & 4 deletions Scripts/unity.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@ Sleep, 5000
SetTitleMatchMode 2
WinActivate Unity
WinWaitActive, ahk_pid %PID%, , 2
Err = ErrorLevel
Err = %ErrorLevel%
FileAppend, Method 1 fail with %Err%, %LOGFile%

if (Err <> 0)
{
; method 2, activate by PID
WinActivate, ahk_pid %PID%
WinWaitActive, ahk_pid %PID%, , 2
Err = ErrorLevel
Err = %ErrorLevel%
FileAppend, Method 2 fail with %Err%, %LOGFile%
if (Err <> 0)
{
; method 3, activate last
Send !{ESC}
WinWaitActive, ahk_pid %PID%, , 2
Err = ErrorLevel
Err = %ErrorLevel%
FileAppend, Method 3 fail with %Err%, %LOGFile%
if (Err <> 0)
{
Expand All @@ -49,7 +49,7 @@ if (Err <> 0)
;MouseMove, (A_ScreenWidth / 2), (A_ScreenHeight / 2)
Click, (A_ScreenWidth / 2), (A_ScreenHeight / 2)
WinWaitActive, ahk_pid %PID%, , 2
Err = ErrorLevel
Err = %ErrorLevel%
FileAppend, Method 4 fail with %Err%, %LOGFile%
}
}
Expand Down
1 change: 0 additions & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ platform: x64

install:
- appveyor DownloadFile https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-desktop.ps1
- ps: .\enable-desktop

build_script:
- ps: .\Scripts\ci-windows-install.ps1
Expand Down

0 comments on commit 80b6d83

Please sign in to comment.