summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml4
-rw-r--r--CMakeLists.txt5
-rwxr-xr-xother/astyle/format-source4
-rwxr-xr-xother/travis/toxcore-linux-install11
4 files changed, 4 insertions, 20 deletions
diff --git a/.travis.yml b/.travis.yml
index 1123915a..d3c46d98 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -13,10 +13,7 @@ matrix:
13 compiler: clang 13 compiler: clang
14 addons: 14 addons:
15 apt: &apt-dependencies 15 apt: &apt-dependencies
16 sources:
17 - avsm
18 packages: 16 packages:
19 - aspcud # For Opam
20 - libconfig-dev # For tox-bootstrapd. 17 - libconfig-dev # For tox-bootstrapd.
21 - libcv-dev # For av_test. 18 - libcv-dev # For av_test.
22 - libhighgui-dev # For av_test. 19 - libhighgui-dev # For av_test.
@@ -25,7 +22,6 @@ matrix:
25 - libsndfile1-dev # For av_test. 22 - libsndfile1-dev # For av_test.
26 - libgtest-dev # For unit tests. 23 - libgtest-dev # For unit tests.
27 - libvpx-dev # For toxav. 24 - libvpx-dev # For toxav.
28 - opam # For apidsl and Frama-C.
29 - portaudio19-dev # For av_test. 25 - portaudio19-dev # For av_test.
30 - stage: "Stage 1" 26 - stage: "Stage 1"
31 if: type IN (push, api, cron) 27 if: type IN (push, api, cron)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e438e221..1aee8017 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -399,16 +399,15 @@ set(TEST_TIMEOUT_SECONDS "" CACHE STRING "Limit runtime of each test to the numb
399 399
400option(FORMAT_TEST "Require the format_test to be executed; fail cmake if it can't" OFF) 400option(FORMAT_TEST "Require the format_test to be executed; fail cmake if it can't" OFF)
401 401
402if(APIDSL AND ASTYLE) 402if(ASTYLE)
403 add_test( 403 add_test(
404 NAME format_test 404 NAME format_test
405 COMMAND ${toxcore_SOURCE_DIR}/other/astyle/format-source 405 COMMAND ${toxcore_SOURCE_DIR}/other/astyle/format-source
406 "${toxcore_SOURCE_DIR}" 406 "${toxcore_SOURCE_DIR}"
407 "${APIDSL}"
408 "${ASTYLE}") 407 "${ASTYLE}")
409 set_tests_properties(format_test PROPERTIES TIMEOUT "${TEST_TIMEOUT_SECONDS}") 408 set_tests_properties(format_test PROPERTIES TIMEOUT "${TEST_TIMEOUT_SECONDS}")
410elseif(FORMAT_TEST) 409elseif(FORMAT_TEST)
411 message(FATAL_ERROR "format_test can not be run, because either APIDSL (${APIDSL}) or ASTYLE (${ASTYLE}) could not be found") 410 message(FATAL_ERROR "format_test can not be run, because ASTYLE (${ASTYLE}) could not be found")
412endif() 411endif()
413 412
414function(auto_test target) 413function(auto_test target)
diff --git a/other/astyle/format-source b/other/astyle/format-source
index cf190982..e558149a 100755
--- a/other/astyle/format-source
+++ b/other/astyle/format-source
@@ -3,8 +3,8 @@
3set -e 3set -e
4 4
5SOURCE_DIR="$1" 5SOURCE_DIR="$1"
6APIDSL="$2" 6ASTYLE="$2"
7ASTYLE="$3" 7APIDSL="$3"
8 8
9# Go to the source root. 9# Go to the source root.
10if [ -z "$SOURCE_DIR" ]; then 10if [ -z "$SOURCE_DIR" ]; then
diff --git a/other/travis/toxcore-linux-install b/other/travis/toxcore-linux-install
index 502d3de7..3bf452f1 100755
--- a/other/travis/toxcore-linux-install
+++ b/other/travis/toxcore-linux-install
@@ -1,16 +1,5 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Set up opam.
4opam init -y
5eval `opam config env`
6
7# Install required opam packages.
8opam install -y ocamlfind ppx_deriving menhir
9
10# Build apidsl.
11git clone --depth=1 https://github.com/TokTok/apidsl ../apidsl
12make -C ../apidsl -j$NPROC
13
14# Install cpp-coveralls to upload test coverage results. 3# Install cpp-coveralls to upload test coverage results.
15pip install --user urllib3[secure] cpp-coveralls 4pip install --user urllib3[secure] cpp-coveralls
16 5