Skip to content

CI Test pull #11

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
version: v1.0
name: Bitcoin Core
agent:
machine:
type: e1-standard-2
os_image: ubuntu1804

blocks:
- name: Compile and test Bitcoin-Core
task:
jobs:
- name: x86_64 Linux Ubuntu 18.04 depends tests
env_vars:
- name: TARGET_HOST
value: x86_64-linux-gnu
- name: PACKAGES
value: ""
- name: RUN_UNIT_TESTS
value: "true"
- name: $RUN_FUNCTIONAL_TESTS
value: "true"
- name: BITCOIN_CONFIG
value: "--disable-dependency-tracking --enable-zmq --with-gui=qt5 --enable-glibc-back-compat --enable-reduce-exports --enable-debug"
commands:
- checkout
- set -o errexit; source .semaphore/update_build_test.sh
- name: ARM Linux Ubuntu 18.04 depends tests
env_vars:
- name: TARGET_HOST
value: arm-linux-gnueabihf
- name: PACKAGES
value: "g++-arm-linux-gnueabihf"
- name: RUN_UNIT_TESTS
value: "false"
- name: $RUN_FUNCTIONAL_TESTS
value: "false"
- name: BITCOIN_CONFIG
value: "--disable-dependency-tracking --enable-glibc-back-compat --enable-reduce-exports CXXFLAGS=-Wno-psabi"
commands:
- checkout
- set -o errexit; source .semaphore/update_build_test.sh
- name: Win64 Ubuntu 18.04 depends
env_vars:
- name: TARGET_HOST
value: x86_64-w64-mingw32
- name: PACKAGES
value: "nsis g++-mingw-w64-x86-64 wine-binfmt wine64"
- name: RUN_UNIT_TESTS
value: "false"
- name: $RUN_FUNCTIONAL_TESTS
value: "false"
- name: BITCOIN_CONFIG
value: "--enable-reduce-exports --disable-gui-tests"
commands:
- checkout
- set -o errexit; source .semaphore/update_build_test.sh
37 changes: 37 additions & 0 deletions .semaphore/update_build_test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env bash
#
# Copyright (c) 2019 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.

export LC_ALL=C.UTF-8

sudo apt-get update
sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES

./autogen.sh
cd depends
ls -la
cache list
cache restore $TARGET_HOST-built
ls -la
make HOST=$TARGET_HOST -j4 V=1
ls -la
cache store $TARGET_HOST-built built/$TARGET_HOST
cache list
cd ..

if [[ $TARGET_HOST = *-mingw32 ]]; then
sudo update-alternatives --set $TARGET_HOST-g++ $(which $TARGET_HOST-g++-posix)
fi

./configure --prefix=`pwd`/depends/$TARGET_HOST $BITCOIN_CONFIG
make -j4

if [ "$RUN_UNIT_TESTS" = "true" ]; then
make check VERBOSE=1
fi

if [ "$RUN_FUNCTIONAL_TESTS" = "true" ]; then
./test/functional/test_runner.py --ci --combinedlogslen=4000 --quiet --failfast
fi
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,5 @@ Translations are periodically pulled from Transifex and merged into the git repo
pull from Transifex would automatically overwrite them again.

Translators should also subscribe to the [mailing list](https://groups.google.com/forum/#!forum/bitcoin-translators).

TEST3