mirror of
https://github.com/vgough/encfs.git
synced 2025-06-26 06:52:16 +02:00
update ci builds
This commit is contained in:
parent
6d130cda8b
commit
bee004f892
17
.travis.yml
17
.travis.yml
@ -14,29 +14,14 @@ branches:
|
|||||||
- coverity_scan
|
- coverity_scan
|
||||||
- travis
|
- 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:
|
before_script:
|
||||||
- sudo modprobe fuse
|
- sudo modprobe fuse
|
||||||
- cmake --version
|
- cmake --version
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- if [ "${COVERITY_SCAN_BRANCH}" != 1 ]; then ./build.sh && ./test.sh ; fi
|
- ./ci/check.sh
|
||||||
|
|
||||||
addons:
|
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:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
|
14
ci/check.sh
Normal file
14
ci/check.sh
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
#!/bin/bash -eu
|
||||||
|
|
||||||
|
if [[ ! -d build ]]
|
||||||
|
then
|
||||||
|
mkdir build
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd build
|
||||||
|
cmake ..
|
||||||
|
make -j2
|
||||||
|
make test
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
@ -10,5 +10,5 @@ dependencies:
|
|||||||
test:
|
test:
|
||||||
override:
|
override:
|
||||||
- bash ./ci/config.sh
|
- bash ./ci/config.sh
|
||||||
- cd build && make && make test && ./checkops && make install
|
- cd build && make && make test && make install
|
||||||
- /tmp/encfs/bin/encfsctl --version
|
- /tmp/encfs/bin/encfsctl --version
|
||||||
|
@ -6,5 +6,3 @@ add_test(unit unittests)
|
|||||||
file(GLOB_RECURSE BENCH_SOURCES "*_bench.cpp")
|
file(GLOB_RECURSE BENCH_SOURCES "*_bench.cpp")
|
||||||
add_executable (benchmarks ${BENCH_SOURCES})
|
add_executable (benchmarks ${BENCH_SOURCES})
|
||||||
target_link_libraries(benchmarks benchmark encfs)
|
target_link_libraries(benchmarks benchmark encfs)
|
||||||
|
|
||||||
add_custom_target(integration COMMAND ${CMAKE_CURRENT_LIST_DIR}/integration.sh)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user