Update CI scripts to respect the vA.B tag name format.

pull/4/merge v2.1.rc1
whitequark 2016-05-17 14:53:36 +00:00
parent 0d7aa0a1a3
commit 1e2f199633
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh -xe #!/bin/sh -xe
if echo $TRAVIS_TAG | grep ^release-; then BUILD_TYPE=RelWithDebInfo; else BUILD_TYPE=Debug; fi if echo $TRAVIS_TAG | grep ^v; then BUILD_TYPE=RelWithDebInfo; else BUILD_TYPE=Debug; fi
export BUILD_TYPE export BUILD_TYPE
dpkg-buildpackage -b -us -uc dpkg-buildpackage -b -us -uc

View File

@ -1,6 +1,6 @@
#!/bin/sh -xe #!/bin/sh -xe
if echo $TRAVIS_TAG | grep ^release-; then BUILD_TYPE=RelWithDebInfo; else BUILD_TYPE=Debug; fi if echo $TRAVIS_TAG | grep ^v; then BUILD_TYPE=RelWithDebInfo; else BUILD_TYPE=Debug; fi
mkdir build mkdir build
cd build cd build

View File

@ -5,7 +5,7 @@ before_build:
- mkdir build - mkdir build
- cd build - cd build
- set tag=x%APPVEYOR_REPO_TAG_NAME% - set tag=x%APPVEYOR_REPO_TAG_NAME%
- if %tag:~,9% == xrelease- (set BUILD_TYPE=RelWithDebInfo) else (set BUILD_TYPE=Debug) - if %tag:~,2% == xv (set BUILD_TYPE=RelWithDebInfo) else (set BUILD_TYPE=Debug)
- cmake -G"Visual Studio 12" -T v120_xp -DCMAKE_BUILD_TYPE=%BUILD_TYPE% .. - cmake -G"Visual Studio 12" -T v120_xp -DCMAKE_BUILD_TYPE=%BUILD_TYPE% ..
build_script: build_script:
- msbuild "src\solvespace.vcxproj" /verbosity:minimal /property:Configuration=%BUILD_TYPE% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" - msbuild "src\solvespace.vcxproj" /verbosity:minimal /property:Configuration=%BUILD_TYPE% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"