Skip to content

Commit

Permalink
Trying to get windows screen resolution to change
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Jan 12, 2019
1 parent b4ae265 commit d55ab67
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,19 @@ strategy:
matrix:

linux:
# Ubuntu 16.04
imageName: 'ubuntu-16.04'
screen_w: 1280
screen_h: 1024
screen_d: 8
mac:
# macOS 10.13
imageName: 'macos-10.13'
screen_w: 1280
screen_h: 1024
screen_d: 8
windows:
# Visual Studio 2017 on Windows Server 2016
imageName: 'vs2017-win2016'
screen_w: 1280
screen_h: 1024
Expand Down Expand Up @@ -61,6 +64,7 @@ steps:
system_profiler SPDisplaysDataType | grep Resolution
sudo python ci/screen.py
sudo chmod +x ci/cscreen
./ci/cscreen -v
./ci/cscreen -x $(screen_w) -y $(screen_h) -d $(screen_d)
sudo python ci/screen.py
sudo python setup.py -q install
Expand All @@ -71,8 +75,9 @@ 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 "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}
python ci/screen.py
python setup.py -q install --user
pytest -v
Expand Down

0 comments on commit d55ab67

Please sign in to comment.