summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x.travis-build.sh9
-rw-r--r--CMakeLists.txt2
-rw-r--r--appveyor.yml5
-rw-r--r--src/tests/CMakeLists.txt2
4 files changed, 16 insertions, 2 deletions
diff --git a/.travis-build.sh b/.travis-build.sh
index e06a4299b..511df04ac 100755
--- a/.travis-build.sh
+++ b/.travis-build.sh
@@ -18,9 +18,16 @@ if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
18 mkdir build && cd build 18 mkdir build && cd build
19 cmake -DCITRA_FORCE_QT4=ON .. 19 cmake -DCITRA_FORCE_QT4=ON ..
20 make -j4 20 make -j4
21
22 ctest -VV -C Release
21elif [ "$TRAVIS_OS_NAME" = "osx" ]; then 23elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
24 set -o pipefail
25
22 export Qt5_DIR=$(brew --prefix)/opt/qt5 26 export Qt5_DIR=$(brew --prefix)/opt/qt5
27
23 mkdir build && cd build 28 mkdir build && cd build
24 cmake .. -GXcode 29 cmake .. -GXcode
25 xcodebuild -configuration Release | xcpretty -c && exit ${PIPESTATUS[0]} 30 xcodebuild -configuration Release | xcpretty -c
31
32 ctest -VV -C Release
26fi 33fi
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f2898973..f7b0af115 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -255,6 +255,8 @@ endif()
255 255
256add_subdirectory(externals/soundtouch) 256add_subdirectory(externals/soundtouch)
257 257
258enable_testing()
259
258add_subdirectory(src) 260add_subdirectory(src)
259 261
260# Install freedesktop.org metadata files, following those specifications: 262# Install freedesktop.org metadata files, following those specifications:
diff --git a/appveyor.yml b/appveyor.yml
index e825ff85d..b2b0ae28b 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -26,7 +26,10 @@ build:
26 project: build/citra.sln 26 project: build/citra.sln
27 parallel: true 27 parallel: true
28 28
29after_build: 29test_script:
30 - cd build && ctest -VV -C Release
31
32on_success:
30 # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder 33 # copying the needed QT Dlls is now done post build. See the CMakeLists.txt file in the citra-qt folder
31 - ps: > 34 - ps: >
32 if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master")) 35 if (!"$env:APPVEYOR_PULL_REQUEST_TITLE" -and ("$env:APPVEYOR_REPO_BRANCH" -eq "master"))
diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt
index dc476616c..457c55571 100644
--- a/src/tests/CMakeLists.txt
+++ b/src/tests/CMakeLists.txt
@@ -12,3 +12,5 @@ include_directories(../../externals/catch/single_include/)
12add_executable(tests ${SRCS} ${HEADERS}) 12add_executable(tests ${SRCS} ${HEADERS})
13target_link_libraries(tests core video_core audio_core common) 13target_link_libraries(tests core video_core audio_core common)
14target_link_libraries(tests ${PLATFORM_LIBRARIES}) 14target_link_libraries(tests ${PLATFORM_LIBRARIES})
15
16add_test(NAME tests COMMAND $<TARGET_FILE:tests>)