Run tests on CI
This commit is contained in:
parent
b3e3faf36e
commit
cf5fc6b20a
10
.travis.yml
10
.travis.yml
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user