Skip to content

Commit

Permalink
Debug: Added make help to tox.ini
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
  • Loading branch information
andy-maier committed Feb 17, 2019
1 parent 9cfefb9 commit 1966f15
Show file tree
Hide file tree
Showing 6 changed files with 191 additions and 65 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ install:
fi
# End of m2crypto quick fix.
- pip list
- make platform env
- make install
- pip list
- make develop
Expand Down
2 changes: 1 addition & 1 deletion PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: pywbem
Version: 0.12.1.dev221
Version: 0.12.1.dev236
Summary: pywbem - A WBEM client
Home-page: https://pywbem.github.io/pywbem/
Author: Tim Potter
Expand Down
157 changes: 110 additions & 47 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,78 @@ environment:
# Python 2.6 is not supported by M2Crypto on Windows (nor by the earlier used
# M2CryptoWin32/Win64; its __m2crypto.pyd file depends on python27.dll).
#------------------------
- PYTHON_VERSION: 2.7
PYTHON_ARCH: 32
PYTHON_HOME: C:\Python27

# - PYTHON_VERSION: 2.7
# PYTHON_ARCH: 64
# PYTHON_HOME: C:\Python27-x64
# PYTHON_ARCH: 32
# PYTHON_HOME: C:\Python27
# UNIX_PATH: none

# - PYTHON_VERSION: 2.7
# PYTHON_ARCH: 32
# PYTHON_HOME: C:\Python27
# UNIX_PATH: C:\cygwin\bin

- PYTHON_VERSION: 2.7
PYTHON_ARCH: 64
PYTHON_HOME: C:\Python27-x64
UNIX_PATH: none
BASH: none

- PYTHON_VERSION: 2.7
PYTHON_ARCH: 64
PYTHON_HOME: C:\Python27-x64
UNIX_PATH: C:\cygwin64\bin
BASH: none

- PYTHON_VERSION: 2.7
PYTHON_ARCH: 64
PYTHON_HOME: /usr/bin/python2.7
UNIX_PATH: C:\cygwin64\bin
BASH: bash

- PYTHON_VERSION: 2.7
PYTHON_ARCH: 64
PYTHON_HOME: C:\Python27-x64
UNIX_PATH: C:\msys64\usr\bin
BASH: none

- PYTHON_VERSION: 2.7
PYTHON_ARCH: 64
PYTHON_HOME: /usr/bin/python2.7
UNIX_PATH: C:\msys64\usr\bin
BASH: bash

# - PYTHON_VERSION: 3.4
# PYTHON_ARCH: 32
# PYTHON_HOME: C:\Python34

# - PYTHON_VERSION: 3.4
# PYTHON_ARCH: 64
# PYTHON_HOME: C:\Python34-x64

# - PYTHON_VERSION: 3.5
# PYTHON_ARCH: 32
# PYTHON_HOME: C:\Python35

# - PYTHON_VERSION: 3.5
# PYTHON_ARCH: 64
# PYTHON_HOME: C:\Python35-x64

# - PYTHON_VERSION: 3.6
# PYTHON_ARCH: 32
# PYTHON_HOME: C:\Python36

# - PYTHON_VERSION: 3.6
# PYTHON_ARCH: 64
# PYTHON_HOME: C:\Python36-x64

# - PYTHON_VERSION: 3.7
# PYTHON_ARCH: 32
# PYTHON_HOME: C:\Python37
- PYTHON_VERSION: 3.7
PYTHON_ARCH: 64
PYTHON_HOME: C:\Python37-x64

# - PYTHON_VERSION: 3.7
# PYTHON_ARCH: 64
# PYTHON_HOME: C:\Python37-x64

configuration:
# These values will become the values of the PACKAGE_LEVEL env.var.
Expand All @@ -50,6 +92,11 @@ install:
# Examine the initial environment
- set

# Examine the available software
- dir C:\
- dir c:\msys64\usr\bin
- dir c:\msys64\mingw64\bin

- git --version
- if %APPVEYOR_REPO_BRANCH%.==manual-ci-run. set _NEED_REBASE=true
# This Git version requires user configuration in rebase step
Expand Down Expand Up @@ -81,41 +128,48 @@ install:
- 'set $newpath=%$newpath:^^=%'
- 'set PATH=%$newpath%'

# Add CygWin
# This must be after removal of Python 2.7 (because CygWin has the Unix find) and
# before adding Python (because CygWin also has a python).
- set PATH=C:\cygwin\bin;%PATH%

# Add Python
- reg ADD HKCU\Software\Python\PythonCore\%PYTHON_VERSION%\InstallPath /ve /d "%PYTHON_HOME%" /t REG_SZ /f
- reg ADD HKLM\Software\Python\PythonCore\%PYTHON_VERSION%\InstallPath /ve /d "%PYTHON_HOME%" /t REG_SZ /f
- set PATH=%PYTHON_HOME%;%PYTHON_HOME%\Scripts;%PATH%
- where python
- python --version

## Install InnoSetup - disabled because it is not needed
#- choco install -y InnoSetup
#- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%

## Install pip - disabled because pip is already installed
#- ps: (new-object System.Net.WebClient).Downloadfile('https://bootstrap.pypa.io/get-pip.py', 'C:\Users\appveyor\get-pip.py')
#- ps: Start-Process -FilePath "C:\Python27\python.exe" -ArgumentList "C:\Users\appveyor\get-pip.py" -Wait -Passthru
- where pip
- pip --version
# Add UNIX path, if set in the build matrix
# This must be after removal of Python 2.7 (because that uses the Windows
# find and the UNIX env likely has the Unix find) and before adding Python
# (because the UNIX env may also have a python).
- '
if not "%UNIX_PATH%"=="none" (
echo "Adding UNIX path: %UNIX_PATH%" &&
echo %PATH%
)
'

# Add Python (includes Pip)
- '
if "%BASH%"=="none" (
reg ADD HKCU\Software\Python\PythonCore\%PYTHON_VERSION%\InstallPath /ve /d "%PYTHON_HOME%" /t REG_SZ /f &&
reg ADD HKLM\Software\Python\PythonCore\%PYTHON_VERSION%\InstallPath /ve /d "%PYTHON_HOME%" /t REG_SZ /f &&
set PATH=%PYTHON_HOME%;%PYTHON_HOME%\Scripts;%PATH% &&
where python &&
python --version &&
where pip &&
pip --version
)
'

# Verify that Chocolatey is available
- where choco
- choco --version

# Install GNU make if no UNIX env is set
- if %UNIX_PATH%.==none. choco install -y make
- where make
- make --version

# Circumvention:
# The installation in pywbem_os_setup.bat installs swig but without generating
# the swig.exe shim file (using GenShim).
# See GenShim issue https://github.com/chocolatey/shimgen/issues/43
# Therefore, we install swig here in order to create the swig.exe shim file.
# TODO: Remove the circumvention once it works in pywbem_os_setup.bat.
- choco install -r -y --allow-empty-checksums swig
- where swig
- swig -version
#- choco install -y --allow-empty-checksums swig
#- where swig
#- swig -version

# Examine the final environment
- 'echo "%PATH%"'
Expand All @@ -124,35 +178,44 @@ install:
- 'echo "%LIB%"'
- 'echo "%SWIG_FEATURES%"'

# Install tox
- pip install tox==2.0.0
- where tox
- tox --version

# Verify that the commands used in tox.ini are available
# Already verified further up: tox, pip, python.
- where make
- make --version

# Verify that the commands used in makefile are available
# Already verified further up: pip, python.
- where cmd

# Verify that the commands used in pywbem_os_setup.bat are available
# Already verified further up: choco, pip, python.
- where chmod
- chmod --version
- where tar
- tar --version

# Install Python virtualenv and OS commands
- pip install virtualenv
- virtualenv myenv
- myenv\Scripts\activate
- where python
- python --version
- where pip
- pip --version
- call pywbem_os_setup.bat install
- call pywbem_os_setup.bat develop

# Verify that the commands used in makefile are available
# Already verified further up: pip, python.
- where cmd

# Verify that the commands used in the pywbem testsuite are available
- where xmllint
- xmllint --version

# Install Python packages
- make platform env
- pip list
- make install
- pip list
- make develop
- pip list

# Not a C# project, build stuff at the test step instead.
build: false

before_test:

test_script:
- tox -e pywin
- make test
Loading

0 comments on commit 1966f15

Please sign in to comment.