diff options
-rw-r--r-- | .travis.yml | 4 | ||||
-rw-r--r-- | CMakeLists.txt | 5 | ||||
-rwxr-xr-x | other/astyle/format-source | 4 | ||||
-rwxr-xr-x | other/travis/toxcore-linux-install | 11 |
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 | ||
400 | option(FORMAT_TEST "Require the format_test to be executed; fail cmake if it can't" OFF) | 400 | option(FORMAT_TEST "Require the format_test to be executed; fail cmake if it can't" OFF) |
401 | 401 | ||
402 | if(APIDSL AND ASTYLE) | 402 | if(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}") |
410 | elseif(FORMAT_TEST) | 409 | elseif(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") |
412 | endif() | 411 | endif() |
413 | 412 | ||
414 | function(auto_test target) | 413 | function(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 @@ | |||
3 | set -e | 3 | set -e |
4 | 4 | ||
5 | SOURCE_DIR="$1" | 5 | SOURCE_DIR="$1" |
6 | APIDSL="$2" | 6 | ASTYLE="$2" |
7 | ASTYLE="$3" | 7 | APIDSL="$3" |
8 | 8 | ||
9 | # Go to the source root. | 9 | # Go to the source root. |
10 | if [ -z "$SOURCE_DIR" ]; then | 10 | if [ -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. | ||
4 | opam init -y | ||
5 | eval `opam config env` | ||
6 | |||
7 | # Install required opam packages. | ||
8 | opam install -y ocamlfind ppx_deriving menhir | ||
9 | |||
10 | # Build apidsl. | ||
11 | git clone --depth=1 https://github.com/TokTok/apidsl ../apidsl | ||
12 | make -C ../apidsl -j$NPROC | ||
13 | |||
14 | # Install cpp-coveralls to upload test coverage results. | 3 | # Install cpp-coveralls to upload test coverage results. |
15 | pip install --user urllib3[secure] cpp-coveralls | 4 | pip install --user urllib3[secure] cpp-coveralls |
16 | 5 | ||