Skip to content

Commit

Permalink
Trying to switch screen res on Windows and Mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Jan 12, 2019
1 parent d55ab67 commit 35fa42d
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@ strategy:
imageName: 'ubuntu-16.04'
screen_w: 1280
screen_h: 1024
screen_d: 8
screen_d: 32
mac:
# macOS 10.13
imageName: 'macos-10.13'
screen_w: 1280
screen_h: 1024
screen_d: 8
screen_d: 32
windows:
# Visual Studio 2017 on Windows Server 2016
imageName: 'vs2017-win2016'
# Windows Docker Container not Visual Studio 2017 on Windows Server 2016
imageName: 'win1803'
screen_w: 1280
screen_h: 1024
screen_d: 8
screen_d: 32

pool:
vmImage: $(imageName)
Expand Down Expand Up @@ -65,7 +65,7 @@ steps:
sudo python ci/screen.py
sudo chmod +x ci/cscreen
./ci/cscreen -v
./ci/cscreen -x $(screen_w) -y $(screen_h) -d $(screen_d)
./ci/cscreen -x $(screen_w) -y $(screen_h) -d $(screen_d) -f -s a
sudo python ci/screen.py
sudo python setup.py -q install
sudo pytest -v
Expand All @@ -75,9 +75,10 @@ steps:

- script: |
python ci/screen.py
#PowerShell -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/set-screenresolution.ps1'))"
#PowerShell -Command {Set-ScreenResolution $(screen_w) $(screen_h)}
PowerShell -Command {Set-DisplayResolution -Width $(screen_w) -Height $(screen_h) -Force}
PowerShell -Command "iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/set-screenresolution.ps1'))"
PowerShell -Command {Set-ScreenResolution $(screen_w) $(screen_h)}
#PowerShell -Command {Set-DisplayResolution -Width $(screen_w) -Height $(screen_h) -Force}
#PowerShell -Command {SetDisplayResolution -Width $(screen_w) -Height $(screen_h) -Force}
python ci/screen.py
python setup.py -q install --user
pytest -v
Expand Down

0 comments on commit 35fa42d

Please sign in to comment.