Run tests on CI

This commit is contained in:
Zeex 2018-01-01 18:38:17 +06:00
parent b3e3faf36e
commit cf5fc6b20a
2 changed files with 14 additions and 4 deletions

View File

@ -14,14 +14,18 @@ addons:
- cmake
before_script:
- cmake source/compiler -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_C_FLAGS="-m32 -Werror -Wno-address-of-packed-member"
-DCPACK_GENERATOR="TGZ;ZIP"
- cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_C_FLAGS="-m32 -Werror -Wno-address-of-packed-member"
-DCPACK_GENERATOR="TGZ;ZIP"
script:
- make
- make test
- make package
after_failure:
- cat Testing/Temporary/LastTest.log
deploy:
provider: releases
api_key:

View File

@ -5,12 +5,18 @@ configuration:
- RelWithDebInfo
before_build:
- cmake -G "Visual Studio 12 2013" source/compiler -DCPACK_GENERATOR=ZIP
- cmake -G "Visual Studio 12 2013" . -DCPACK_GENERATOR=ZIP
build_script:
- cmake --build . --config %CONFIGURATION%
- cmake --build . --config %CONFIGURATION% --target package
test_script:
- ctest --build-config %CONFIGURATION%
on_failure:
- type Testing\Temporary\LastTest.log<Paste>
artifacts:
- path: pawnc-*-windows.zip
name: Binary package