Skip to content

Commit

Permalink
try to run qmake test on appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
rizsotto committed Aug 9, 2017
1 parent 0a3dd5b commit 2a2a086
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 7 deletions.
18 changes: 14 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ build:

environment:
matrix:
# Pre-installed Python versions,
# See: http://www.appveyor.com/docs/installed-software#python
# Pre-installed Python versions <http://www.appveyor.com/docs/installed-software#python>
- PYTHON: "C:\\Python27"
- PYTHON: "C:\\Python27-x64"
- PYTHON: "C:\\Python33"
Expand All @@ -15,6 +14,8 @@ environment:
- PYTHON: "C:\\Python34-x64"
- PYTHON: "C:\\Python35"
- PYTHON: "C:\\Python35-x64"
- PYTHON: "C:\\Python36"
- PYTHON: "C:\\Python36-x64"

install:
# If there is a newer build queued for the same PR, cancel this one.
Expand All @@ -27,10 +28,19 @@ install:
Where-Object pullRequestId -eq $env:APPVEYOR_PULL_REQUEST_NUMBER)[0].buildNumber) { `
throw "There are newer queued builds for this pull request, failing early." }

# Add LLVM to PATH <https://www.appveyor.com/docs/build-environment/#llvm>
- "SET PATH=C:\\Program Files\\LLVM\\bin;%PATH%"

# Prepend newly installed Python to the PATH of this build (this cannot be
# done from inside the powershell script as it would require to restart
# the parent CMD process).
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;C:\\Program Files\\LLVM\\bin;%PATH%"
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"

# Add Qt5 to PATH <https://www.appveyor.com/docs/build-environment/#qt>
- "SET PATH=C:\\Qt\\5.8\\mingw53_32\\bin;%PATH%"

# Add the related MinGW (32 bit environment too)
- "SET PATH=C:\\MinGW\\bin;%PATH%"

# Check Clang version
- "clang.exe --version"
Expand All @@ -56,7 +66,7 @@ build_script:

test_script:
# Run the project tests
- "lit -DBINARIES=PATH -v tests"
- "lit -DUSE_INSTALLED=true -v tests"

after_test:
# If tests are successful, create binary packages for the project.
Expand Down
6 changes: 3 additions & 3 deletions tests/functional/cases/intercept/end-to-end/qmake.ft
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# REQUIRES: qmake,preload
# REQUIRES: make,qmake,preload
# RUN: mkdir -p %T/qmake_build
# RUN: cd %T/qmake_build; qmake-qt4 ../../Input/qmake.pro
# RUN: cd %T/qmake_build; %{intercept-build} --cdb qmake.json make
# RUN: cd %T/qmake_build; %{qmake} ../../Input/qmake.pro
# RUN: cd %T/qmake_build; %{intercept-build} --cdb qmake.json %{make}
# RUN: %{python} %S/check_files.py %T/qmake_build/qmake.json
14 changes: 14 additions & 0 deletions tests/lit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,20 @@ if is_available('scons') and sys.version_info < (3, 0):

if is_available('qmake-qt4'):
config.available_features.add('qmake')
config.substitutions.append(('%{qmake}', 'qmake-qt4'))
elif is_available('qmake-qt5'):
config.available_features.add('qmake')
config.substitutions.append(('%{qmake}', 'qmake-qt5'))
elif is_available('qmake'):
config.available_features.add('qmake')
config.substitutions.append(('%{qmake}', 'qmake'))

if is_available('make'):
config.available_features.add('make')
config.substitutions.append(('%{make}', 'make'))
elif is_available('mingw32-make'):
config.available_features.add('make')
config.substitutions.append(('%{make}', 'mingw32-make'))


# classify os script language
Expand Down

0 comments on commit 2a2a086

Please sign in to comment.