Skip to content

Commit

Permalink
appveyor: updated to use OF scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Dec 15, 2016
1 parent b56074b commit ec68902
Showing 1 changed file with 8 additions and 48 deletions.
56 changes: 8 additions & 48 deletions .appveyor.yml
Expand Up @@ -10,70 +10,30 @@ environment:
BUILDER: MSYS2

#VisualStudio Building
- platform: x86
BUILDER : VS
BITS: 32
# - platform: x86
# BUILDER : VS
# BITS: 32
- platform: x64
BUILDER : VS
BITS: 64

configuration: Debug
shallow_clone: true
clone_depth: 10

init:
- set MSYS2_PATH=c:\msys64
- set CHERE_INVOKING=1
#- '%MSYS2_PATH%\usr\bin\bash -lc "pacman --noconfirm -Sy pacman"'
#- '%MSYS2_PATH%\usr\bin\bash -lc "pacman --noconfirm -Syuu"'
- if "%BUILDER%_%PLATFORM%"=="MSYS2_x86" set MSYSTEM=MINGW32
- if "%BUILDER%_%PLATFORM%"=="MSYS2_x64" set MSYSTEM=MINGW64

- '%MSYS2_PATH%\usr\bin\bash -lc "pacman --noconfirm -S --needed unzip rsync"'

- IF "%BUILDER%"=="VS" set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
- set PG_OF_PATH=%APPVEYOR_BUILD_FOLDER%\..\openFrameworks
- if "%BUILDER%"=="VS" set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%

install:
- cd ..
- git clone --depth=1 --branch=master https://github.com/openframeworks/openFrameworks
- move %APPVEYOR_PROJECT_NAME% openFrameworks\addons\%APPVEYOR_PROJECT_NAME%
- cd openFrameworks

- if "%BUILDER%"=="VS" (%MSYS2_PATH%\usr\bin\bash -lc "scripts/vs/download_libs.sh --silent")
- if "%BUILDER%"=="VS" (echo "Downloading projectGenerator from ci server")
- if "%BUILDER%"=="VS" (%MSYS2_PATH%\usr\bin\bash -lc "wget http://ci.openframeworks.cc/projectGenerator/projectGenerator-vs.zip -nv")
- if "%BUILDER%"=="VS" (%MSYS2_PATH%\usr\bin\bash -lc "unzip -qq projectGenerator-vs.zip")
- if "%BUILDER%"=="VS" (rm projectGenerator-vs.zip)
- if "%BUILDER%"=="VS" if exist addons\%APPVEYOR_PROJECT_NAME%\scripts\ci\vs\install.sh call %MSYS2_PATH%\usr\bin\bash -lc "source addons/%APPVEYOR_PROJECT_NAME%/scripts/ci/vs/install.sh"
- if "%BUILDER%"=="VS" if exist addons\%APPVEYOR_PROJECT_NAME%\scripts\ci\vs\install.bat call addons\%APPVEYOR_PROJECT_NAME%\scripts\ci\vs\install.bat
- if "%BUILDER%"=="VS" if exist addons\%APPVEYOR_PROJECT_NAME%\scripts\ci\vs\install.ps call addons\%APPVEYOR_PROJECT_NAME%\scripts\ci\vs\install.ps
- if "%BUILDER%"=="VS" (
for /D %%e in (addons\%APPVEYOR_PROJECT_NAME%\example*) do (
projectGenerator.exe %%e
)
)

- if "%BUILDER%"=="MSYS2" (%MSYS2_PATH%\usr\bin\bash -lc "scripts/msys2/install_dependencies.sh --noconfirm")
- if "%BUILDER%"=="MSYS2" (%MSYS2_PATH%\usr\bin\bash -lc "scripts/msys2/download_libs.sh --silent")
- if "%BUILDER%"=="MSYS2" (
for /D %%e in (addons\%APPVEYOR_PROJECT_NAME%\example*) do (
copy scripts\templates\msys2\Makefile %%e\Makefile &&
copy scripts\templates\msys2\config.make %%e\config.make
)
)
- if "%BUILDER%"=="MSYS2" ( if exist addons\%APPVEYOR_PROJECT_NAME%\scripts\ci\msys2\install.sh ( %MSYS2_PATH%\usr\bin\bash -lc "addons/%APPVEYOR_PROJECT_NAME%/scripts/ci/msys2/install.sh" ) )
- call openFrameworks\scripts\ci\addons\install.cmd

build_script:
- if "%BUILDER%"=="MSYS2" (
for /D %%e in (addons\%APPVEYOR_PROJECT_NAME%\example*) do (
%MSYS2_PATH%\usr\bin\bash -lc "make -C addons/%APPVEYOR_PROJECT_NAME%/%%~ne Debug"
)
)
- if "%BUILDER%"=="VS" (
msbuild libs/openFrameworksCompiled/project/vs/openframeworksLib.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" &&
for /D %%e in (addons\%APPVEYOR_PROJECT_NAME%\example*) do (
msbuild %%e/%%~ne.vcxproj /verbosity:minimal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
)
)
- cd %OF_PATH%
- scripts\ci\addons\build.cmd


0 comments on commit ec68902

Please sign in to comment.