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 - cmake
before_script: before_script:
- cmake source/compiler -DCMAKE_BUILD_TYPE=RelWithDebInfo - cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo
-DCMAKE_C_FLAGS="-m32 -Werror -Wno-address-of-packed-member" -DCMAKE_C_FLAGS="-m32 -Werror -Wno-address-of-packed-member"
-DCPACK_GENERATOR="TGZ;ZIP" -DCPACK_GENERATOR="TGZ;ZIP"
script: script:
- make - make
- make test
- make package - make package
after_failure:
- cat Testing/Temporary/LastTest.log
deploy: deploy:
provider: releases provider: releases
api_key: api_key:

View File

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