Skip to content

Commit

Permalink
Implement AppVeyor CI automated build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
Prcuvu committed Oct 27, 2016
1 parent b76ca65 commit fbcf6f5
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 14 deletions.
10 changes: 10 additions & 0 deletions appveyor.after_build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
setlocal

"C:\Program Files (x86)\NSIS\makensis.exe" installer\installer.nsi
if %ERRORLEVEL% NEQ 0 goto ERROR

:ERROR
set EXITCODE=%ERRORLEVEL%

:EXIT
exit /b %EXITCODE%
25 changes: 25 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
skip_tags: true
pull_requests:
do_not_increment_build_number: true

version: '{branch} build {build}'
image: Visual Studio 2015

init:
- git --version
- git config --global core.autocrlf true

install:
- git submodule init
- git submodule update
- choco install nsis

build_script:
- .\build.bat

after_build:
- appveyor.after_build.bat

artifacts:
- path: installer\PIME-0.15.2-setup.exe
name: Installer
18 changes: 4 additions & 14 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
mkdir build
cd build
cmake -G "Visual Studio 14 2015" ..
cmake --build . --config Release
cd ..
cmake . -Bbuild -G"Visual Studio 14 2015"
cmake --build build --config Release

mkdir build64
cd build64
cmake -G "Visual Studio 14 2015 Win64" ..
cmake --build . --config Release --target PIMETextService
cd ..

cd installer
makensis installer.nsi
pause
cmake . -Bbuild64 -G"Visual Studio 14 2015 Win64"
cmake --build build64 --config Release --target PIMETextService

0 comments on commit fbcf6f5

Please sign in to comment.