diff --git a/.travis.yml b/.travis.yml index 65c1794..b51029d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,29 +14,14 @@ branches: - coverity_scan - travis -env: - global: - # The next declaration is the encrypted COVERITY_SCAN_TOKEN, created - # via the "travis encrypt" command using the project repo's public key - - secure: "KuAAwjiIqkk4vqSX/M3ZZIvQs6edm+tV8IADiklTUYZIFyxu8FgZ6RbDdMD2sef5bNZA1OZhlcbeRtiKff5CfMtvzc607Lg3NUkpi+ShMynWgqS/e0uCMf9ogEJlUiZMxf4juBi7v6DyMl/WV6pAdJmdfHtzcj8GF2mgTfQjkO8=" - before_script: - sudo modprobe fuse - cmake --version script: - - if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./build.sh && ./test.sh ; fi + - ./ci/check.sh addons: - coverity_scan: - project: - name: "vgough/encfs" - description: "Build submitted via Travis CI" - notification_email: vgough@pobox.com - build_command_prepend: "make clean" - build_command: "make -j 4" - branch_pattern: coverity_scan - apt: sources: - ubuntu-toolchain-r-test diff --git a/ci/check.sh b/ci/check.sh new file mode 100644 index 0000000..36367f9 --- /dev/null +++ b/ci/check.sh @@ -0,0 +1,14 @@ +#!/bin/bash -eu + +if [[ ! -d build ]] +then + mkdir build +fi + +cd build +cmake .. +make -j2 +make test + +cd .. + diff --git a/circle.yml b/circle.yml index 04d5f28..c570296 100644 --- a/circle.yml +++ b/circle.yml @@ -10,5 +10,5 @@ dependencies: test: override: - bash ./ci/config.sh - - cd build && make && make test && ./checkops && make install + - cd build && make && make test && make install - /tmp/encfs/bin/encfsctl --version diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 44a427f..f5f732a 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -6,5 +6,3 @@ add_test(unit unittests) file(GLOB_RECURSE BENCH_SOURCES "*_bench.cpp") add_executable (benchmarks ${BENCH_SOURCES}) target_link_libraries(benchmarks benchmark encfs) - -add_custom_target(integration COMMAND ${CMAKE_CURRENT_LIST_DIR}/integration.sh)