From cf5fc6b20a28d7c20ba007ac2710b373f08b7aa7 Mon Sep 17 00:00:00 2001 From: Zeex Date: Mon, 1 Jan 2018 18:38:17 +0600 Subject: [PATCH] Run tests on CI --- .travis.yml | 10 +++++++--- appveyor.yml | 8 +++++++- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 72624af..f72e4c9 100644 --- a/.travis.yml +++ b/.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: diff --git a/appveyor.yml b/appveyor.yml index cdb2448..18e7f28 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -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 + artifacts: - path: pawnc-*-windows.zip name: Binary package