diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 02959d361..67663df53 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt @@ -1,28 +1,28 @@ -option(BUILD_SOURCE_CONTROL_TOOLS "Build the source control tools" OFF) -if(BUILD_SOURCE_CONTROL_TOOLS) +option(ENABLE_SOURCE_CONTROL_TOOLS_TESTS "Enable testing of the source control tools" OFF) +if(ENABLE_SOURCE_CONTROL_TOOLS_TESTS) add_subdirectory(source-control-tools) endif() add_subdirectory(devtools) include(PackageHelper) exclude_from_source_package( # Subdirectories "debian/" "gitian/" "gitian-builder/" "gitian-descriptors/" "qos/" "seeds/" "teamcity/" "testgen/" # FIXME Can be packaged once it gets updated to work with Bitcoin ABC "verifybinaries/" "zmq/" # Files "bitcoin-qt.pro" "gitian-build.py" "README.md" "valgrind.supp" ) diff --git a/contrib/teamcity/build-configurations.yml b/contrib/teamcity/build-configurations.yml index 85e720535..8e2af90c3 100644 --- a/contrib/teamcity/build-configurations.yml +++ b/contrib/teamcity/build-configurations.yml @@ -1,305 +1,305 @@ --- # Templates can be referenced in builds to avoid duplication templates: common_unix_artifacts: artifacts: CMakeCache.txt: CMakeCache.txt src/bitcoind: bin/bitcoind src/bitcoin-*: bin src/qt/bitcoin-qt: bin/bitcoin-qt src/bench/bitcoin-bench: bin/bitcoin-bench src/seeder/bitcoin-seeder: bin/bitcoin-seeder src/libbitcoinconsensus.*: lib src/test/test_bitcoin: bin/test_bitcoin src/qt/test/test_bitcoin-qt: bin/test_bitcoin-qt src/seeder/test/test-seeder: bin/test-seeder test/tmp/test_runner_*: functional gitian_builds: script: gitian.sh timeout: 7200 artifacts: gitian-results: '' # The build descriptions. # If a script is defined, then this will be the only step to run. # Otherwise a list of targets can be specified, grouped by parallel runs. # Example: # targets: # - - build11 # - build12 # - - build21 # - build22 # Will run: # ninja build11 build12 # ninja build21 build22 builds: build-asan: Werror: true clang: true cmake_flags: - '-DCMAKE_CXX_FLAGS=-DARENA_DEBUG' - '-DCMAKE_BUILD_TYPE=Debug' - '-DCRYPTO_USE_ASM=OFF' - '-DENABLE_SANITIZERS=address' targets: - - all - install - install-secp256k1 - - check - check-secp256k1 - check-functional timeout: 1800 env: ASAN_OPTIONS: log_path=stdout LSAN_OPTIONS: log_path=stdout build-bench: Werror: true cmake_flags: - '-DSECP256K1_ENABLE_MODULE_ECDH=ON' - '-DSECP256K1_ENABLE_MODULE_MULTISET=ON' targets: - - all - install-bitcoin-bench - install-secp256k1-bench - - bench-bitcoin - - bench-secp256k1 timeout: 1200 build-clang-10: runOnDiff: true Werror: true cmake_flags: - '-DCMAKE_C_COMPILER=clang-10' - '-DCMAKE_CXX_COMPILER=clang++-10' targets: - - all - install - install-secp256k1 - - check - check-secp256k1 timeout: 1200 build-clang-tidy: runOnDiff: true script: builds/build-clang-tidy.sh templates: - common_unix_artifacts timeout: 600 artifacts: clang-tidy-warnings.txt: clang-tidy-warnings.txt build-coverage: script: builds/build-coverage.sh templates: - common_unix_artifacts timeout: 4800 artifacts: coverage.tar.gz: coverage.tar.gz build-diff: runOnDiff: true Werror: true targets: - - all - install - install-secp256k1 - - check-all - check-upgrade-activated timeout: 1200 build-docs: script: builds/build-docs.sh templates: - common_unix_artifacts timeout: 600 artifacts: doc/*: doc build-ibd: script: builds/build-ibd.sh templates: - common_unix_artifacts timeout: 14400 artifacts: ibd/debug.log: log/debug.log build-ibd-no-assumevalid-checkpoint: script: builds/build-ibd-no-assumevalid-checkpoint.sh template: - common_unix_artifacts timeout: 21600 artifacts: ibd/debug.log: log/debug.log build-linux32: script: builds/build-linux32.sh templates: - common_unix_artifacts timeout: 3600 build-linux64: script: builds/build-linux64.sh templates: - common_unix_artifacts timeout: 3600 build-linux-aarch64: script: builds/build-linux-aarch64.sh templates: - common_unix_artifacts timeout: 3600 env: QEMU_LD_PREFIX: /usr/aarch64-linux-gnu build-linux-arm: script: builds/build-linux-arm.sh templates: - common_unix_artifacts timeout: 3600 env: QEMU_LD_PREFIX: /usr/arm-linux-gnueabihf build-make-generator: script: builds/build-make-generator.sh templates: - common_unix_artifacts timeout: 1200 build-master: Werror: true targets: - - all - install - install-secp256k1 - - check-extended - check-upgrade-activated-extended timeout: 4800 build-osx: script: builds/build-osx.sh templates: - common_unix_artifacts timeout: 3600 artifacts: src/qt/BitcoinABC-Qt.app: bin Bitcoin-ABC.dmg: Bitcoin-ABC.dmg build-secp256k1: script: builds/build-secp256k1.sh templates: - common_unix_artifacts timeout: 900 artifacts: src/secp256k1/libsecp256k1*: lib build-tsan: Werror: true clang: true cmake_flags: - '-DENABLE_SANITIZERS=thread' targets: - - all - install - - check - check-functional timeout: 1800 env: TSAN_OPTIONS: log_path=stdout build-ubsan: Werror: true clang: true cmake_flags: - '-DCMAKE_BUILD_TYPE=Debug' - '-DENABLE_SANITIZERS=undefined' targets: - - all - install - install-secp256k1 - - check - check-secp256k1 - check-functional timeout: 1800 env: UBSAN_OPTIONS: log_path=stdout build-win64: script: builds/build-win64.sh timeout: 3600 artifacts: CMakeCache.txt: CMakeCache.txt src/bitcoind.exe: bin/bitcoind.exe src/bitcoin-*.exe: bin src/qt/bitcoin-qt.exe: bin/bitcoin-qt.exe src/bench/bitcoin-bench.exe: bin/bitcoin-bench.exe src/libbitcoinconsensus*: lib src/test/test_bitcoin.exe: bin/test_bitcoin.exe src/qt/test/test_bitcoin-qt.exe: bin/test_bitcoin-qt.exe src/qt/test/test_bitcoin-qt.log: log/qt/test_bitcoin-qt.log bitcoin-abc-*-x86_64-w64-mingw32.exe: bitcoin-abc-x86_64-w64-mingw32.exe build-without-cli: Werror: true cmake_flags: - '-DBUILD_BITCOIN_CLI=OFF' targets: - - all - install - - check-functional timeout: 1200 build-without-wallet: runOnDiff: true Werror: true cmake_flags: - '-DBUILD_BITCOIN_WALLET=OFF' targets: - - all - install - - check - check-functional timeout: 1200 build-without-zmq: Werror: true cmake_flags: - '-DBUILD_BITCOIN_ZMQ=OFF' targets: - - all - install - - check - check-functional timeout: 1800 check-seeds: script: builds/check-seeds.sh templates: - common_unix_artifacts timeout: 600 check-source-control-tools: cmake_flags: - - '-DBUILD_SOURCE_CONTROL_TOOLS=ON' + - '-DENABLE_SOURCE_CONTROL_TOOLS_TESTS=ON' targets: - - check-source-control-tools timeout: 600 gitian-linux: templates: - gitian_builds env: OS_NAME: linux gitian-osx: templates: - gitian_builds env: OS_NAME: osx gitian-win: templates: - gitian_builds env: OS_NAME: win