Skip to content

Commit

Permalink
Testing build on azure pipelines again
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Blumberg committed Feb 12, 2019
1 parent c8a80f2 commit 43fc017
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
12 changes: 6 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ steps:
sleep 3 # give xvfb some time to start
xdpyinfo | grep dimensions # Check display dimensions
python ci/screen.py # Check display dimensions as seen by PySide
pytest -v --junitxml=junit/test-results.xml
mv examples/data/14061619.png examples/data/14061619_linux.png
#pytest -v --junitxml=junit/test-results.xml
#mv examples/data/14061619.png examples/data/14061619_linux.png
displayName: "Installing code and running tests (Linux)"
condition: eq( variables['Agent.OS'], 'Linux')

Expand All @@ -70,8 +70,8 @@ steps:
system_profiler SPDisplaysDataType | grep Resolution # Check display dimensions using OS tools
sudo python ci/screen.py # Check display dimensions as seen by PySide
sudo python setup.py -q install
sudo pytest -v --junitxml=junit/test-results.xml
sudo mv examples/data/14061619.png examples/data/14061619_mac.png
#sudo pytest -v --junitxml=junit/test-results.xml
#sudo mv examples/data/14061619.png examples/data/14061619_mac.png
cd runsharp
sudo pyinstaller SHARPpy-osx.spec --noconsole --onefile --log-level DEBUG
sudo chmod 777 dist/SHARPpy.app
Expand All @@ -92,8 +92,8 @@ steps:
python ci/screen.py
python setup.py -q install --user
#pip install -e .
pytest -v --junitxml=junit/test-results.xml
move examples\\data\\14061619.png examples\\data\\14061619_win.png
#pytest -v --junitxml=junit/test-results.xml
#move examples\\data\\14061619.png examples\\data\\14061619_win.png
cd runsharp
pyinstaller SHARPpy-win7-64.spec --log-level DEBUG
cd ..
Expand Down
4 changes: 4 additions & 0 deletions runsharp/SHARPpy-osx.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import glob
import sharppy
from sharppy._version import get_versions

print("PATH TO SHARPPY:", sharppy.__file__)
# Write the versions file using versioneer, because PyInstaller doesn't do this automatically
ver = get_versions()
ver = str(ver)
Expand All @@ -16,6 +17,9 @@ ver_file.write('def get_versions():\n')
ver_file.write(' return ' + ver)
ver_file.close()

def sharppy
import sharppy

# Analyze the SHARPpy package to get dependencies, etc.
a = Analysis(['SHARPpy.py'],
pathex=['/Users/blumberg/SHARPpy/runsharp'],
Expand Down
3 changes: 3 additions & 0 deletions runsharp/SHARPpy-win7-64.spec
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import glob
import sharppy
from sharppy._version import get_versions

print("PATH TO SHARPPY:", sharppy.__file__)
# Write the versions file using versioneer, because PyInstaller doesn't do this automatically
ver = get_versions()
ver = str(ver)
Expand All @@ -15,6 +16,8 @@ ver_file.write("def get_versions():\n")
ver_file.write(' return ' + ver)
ver_file.close()

def sharppy
import sharppy

a = Analysis(['SHARPpy.py'],
pathex=[r'C:\Users\Tim\SHARPpy\runsharp'],
Expand Down

0 comments on commit 43fc017

Please sign in to comment.