Skip to content

Commit

Permalink
Merge branch 'bitcoin' into auxpow
Browse files Browse the repository at this point in the history
Unify our own height-based activation of Segwit and CSV (previously together
with BIP16) with the upstream change
bitcoin/bitcoin#16060.

Also includes some basic fixes to stuff in the diff of bitcoin..auxpow
that is not needed (anymore) and has been forgotten to be cleaned up.
  • Loading branch information
domob1812 committed Aug 19, 2019
2 parents 0bae117 + 48e5bfe commit 1597df2
Show file tree
Hide file tree
Showing 131 changed files with 2,519 additions and 907 deletions.
24 changes: 24 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,27 @@ task:
- gmake check ${MAKEJOBS} VERBOSE=1
functional_test_script:
- ./test/functional/test_runner.py --jobs 9 --ci --extended --exclude feature_dbcrash --combinedlogslen=1000 --quiet --failfast
task:
name: "x86_64 Linux [GOAL: install] [bionic] [Using ./ci/ system]"
container:
image: ubuntu:18.04
cpu: 8
memory: 8G
timeout_in: 60m
env:
MAKEJOBS: "-j9"
RUN_CI_ON_HOST: "1"
CCACHE_SIZE: "200M"
CCACHE_DIR: "/tmp/ccache_dir"
ccache_cache:
folder: "/tmp/ccache_dir"
depends_built_cache:
folder: "/tmp/cirrus-ci-build/depends/built"
depends_sdk_cache:
folder: "/tmp/cirrus-ci-build/depends/sdk-sources"
install_script:
- apt-get update
- apt-get -y install git bash ccache
- ccache --max-size=${CCACHE_SIZE}
ci_script:
- ./ci/test_run_all.sh
43 changes: 16 additions & 27 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Bitcoin Core GitHub member via the Travis web interface [0].
#
# Travis CI uploads the cache after the script phase of the build [1].
# However, the build is terminated without saving the chache if it takes over
# However, the build is terminated without saving the cache if it takes over
# 50 minutes [2]. Thus, if we spent too much time in early build stages, fail
# with an error and save the cache.
#
Expand All @@ -40,36 +40,25 @@ stages:
- extended-lint
env:
global:
- MAKEJOBS=-j3
- RUN_UNIT_TESTS=true
- RUN_FUNCTIONAL_TESTS=true
- RUN_FUZZ_TESTS=false
- DOCKER_NAME_TAG=ubuntu:18.04
- BOOST_TEST_RANDOM=1$TRAVIS_BUILD_ID
- CCACHE_SIZE=100M
- CCACHE_TEMPDIR=/tmp/.ccache-temp
- CCACHE_COMPRESS=1
- CCACHE_DIR=$HOME/.ccache
- BASE_OUTDIR=$TRAVIS_BUILD_DIR/out
- SDK_URL=https://bitcoincore.org/depends-sources/sdks
- WINEDEBUG=fixme-all
- DOCKER_PACKAGES="build-essential libtool autotools-dev automake pkg-config bsdmainutils curl git ca-certificates ccache"
- CI_RETRY_EXE="travis_retry"
- CACHE_ERR_MSG="Error! Initial build successful, but not enough time remains to run later build stages and tests. Please manually re-run this job by using the travis restart button or asking a bitcoin maintainer to restart. The next run should not time out because the build cache has been saved."
before_install:
- set -o errexit; source .travis/test_03_before_install.sh
- set -o errexit; source ./ci/test/00_setup_env.sh
- set -o errexit; source ./ci/test/03_before_install.sh
install:
- set -o errexit; source .travis/test_04_install.sh
- set -o errexit; source ./ci/test/04_install.sh
before_script:
- set -o errexit; source .travis/test_05_before_script.sh
- set -o errexit; source ./ci/test/05_before_script.sh
script:
- export CONTINUE=1
- if [ $SECONDS -gt 1200 ]; then export CONTINUE=0; fi # Likely the depends build took very long
- if [ $CONTINUE = "1" ]; then set -o errexit; source .travis/test_06_script_a.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # Whitelisted repo (90 minutes build time)
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_a.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
- if [ $SECONDS -gt 2000 ]; then export CONTINUE=0; fi # Likely the build took very long; The tests take about 1000s, so we should abort if we have less than 50*60-1000=2000s left
- if [ $CONTINUE = "1" ]; then set -o errexit; source .travis/test_06_script_b.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
- if [ $TRAVIS_REPO_SLUG = "bitcoin/bitcoin" ]; then export CONTINUE=1; fi # Whitelisted repo (90 minutes build time)
- if [ $CONTINUE = "1" ]; then set -o errexit; source ./ci/test/06_script_b.sh; else set +o errexit; echo "$CACHE_ERR_MSG"; false; fi
after_script:
- echo $TRAVIS_COMMIT_RANGE
- echo $TRAVIS_COMMIT_LOG
jobs:
include:

Expand All @@ -80,11 +69,11 @@ jobs:
language: python
python: '3.5' # Oldest supported version according to doc/dependencies.md
install:
- set -o errexit; source .travis/lint_04_install.sh
- set -o errexit; source ./ci/lint/04_install.sh
before_script:
- set -o errexit; source .travis/lint_05_before_script.sh
- set -o errexit; source ./ci/lint/05_before_script.sh
script:
- set -o errexit; source .travis/lint_06_script.sh
- set -o errexit; source ./ci/lint/06_script.sh

- stage: extended-lint
name: 'extended lint [runtime >= 60 seconds]'
Expand All @@ -93,11 +82,11 @@ jobs:
language: python
python: '3.5'
install:
- set -o errexit; source .travis/extended_lint_04_install.sh
- set -o errexit; source ./ci/extended_lint/04_install.sh
before_script:
- set -o errexit; source .travis/lint_05_before_script.sh
- set -o errexit; source ./ci/lint/05_before_script.sh
script:
- set -o errexit; source .travis/extended_lint_06_script.sh
- set -o errexit; source ./ci/extended_lint/06_script.sh

- stage: test
name: 'ARM [GOAL: install] [no unit or functional tests]'
Expand Down
8 changes: 0 additions & 8 deletions .travis/README.md

This file was deleted.

37 changes: 0 additions & 37 deletions .travis/test_04_install.sh

This file was deleted.

30 changes: 0 additions & 30 deletions build_msvc/libbitcoin_qt/libbitcoin_qt.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -406,22 +406,13 @@
<None Include="..\..\src\qtes\src\tx_inout.svg">
<DeploymentContent>true</DeploymentContent>
</None>
<None Include="..\..\src\qtes\src\verify.svg">
<DeploymentContent>true</DeploymentContent>
</None>
<None Include="GeneratedFiles\bitcoin.moc" />
<None Include="GeneratedFiles\bitcoinamountfield.moc" />
<None Include="GeneratedFiles\intro.moc" />
<None Include="GeneratedFiles\overviewpage.moc" />
<None Include="GeneratedFilespcconsole.moc" />
</ItemGroup>
<ItemGroup>
<Image Include="..\..\src\qtes\icons\about.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\about_qt.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\add.png">
<DeploymentContent>true</DeploymentContent>
</Image>
Expand Down Expand Up @@ -455,9 +446,6 @@
<Image Include="..\..\src\qtes\icons\clock5.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\configure.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\connect0.png">
<DeploymentContent>true</DeploymentContent>
</Image>
Expand All @@ -473,9 +461,6 @@
<Image Include="..\..\src\qtes\icons\connect4.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\debugwindow.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\edit.png">
<DeploymentContent>true</DeploymentContent>
</Image>
Expand All @@ -497,9 +482,6 @@
<Image Include="..\..\src\qtes\icons\eye_plus.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\filesave.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\fontbigger.png">
<DeploymentContent>true</DeploymentContent>
</Image>
Expand All @@ -518,9 +500,6 @@
<Image Include="..\..\src\qtes\icons\info.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\key.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\lock_closed.png">
<DeploymentContent>true</DeploymentContent>
</Image>
Expand All @@ -530,15 +509,9 @@
<Image Include="..\..\src\qtes\icons\network_disabled.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\open.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\overview.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\quit.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\iconseceive.png">
<DeploymentContent>true</DeploymentContent>
</Image>
Expand Down Expand Up @@ -575,9 +548,6 @@
<Image Include="..\..\src\qtes\icons\tx_output.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\verify.png">
<DeploymentContent>true</DeploymentContent>
</Image>
<Image Include="..\..\src\qtes\icons\warning.png">
<DeploymentContent>true</DeploymentContent>
</Image>
Expand Down
25 changes: 25 additions & 0 deletions ci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
## ci scripts

This directory contains scripts for each build step in each build stage.

Currently three stages `lint`, `extended_lint` and `test` are defined. Each stage has its own lifecycle, similar to the
[Travis CI lifecycle](https://docs.travis-ci.com/user/job-lifecycle#the-job-lifecycle). Every script in here is named
and numbered according to which stage and lifecycle step it belongs to.

### Running a stage locally

To allow for a wide range of tested environments, but also ensure reproducibility to some extent, the test stage
requires `docker` to be installed. To install all requirements on Ubuntu, run

```
sudo apt install docker.io ccache bash git
```

To run the test stage,

```
./ci/test_run_all.sh
```

Be aware that the tests will be build and run in-place, so please run at your own risk.
If the repository is not a fresh git clone, you might have to clean files from previous builds or test runs first.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions .travis/lint_04_install.sh → ci/lint/04_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

export LC_ALL=C

travis_retry pip install codespell==1.15.0
travis_retry pip install flake8==3.5.0
travis_retry pip install vulture==0.29
travis_retry pip3 install codespell==1.15.0
travis_retry pip3 install flake8==3.5.0
travis_retry pip3 install vulture==0.29

SHELLCHECK_VERSION=v0.6.0
curl -s "https://storage.googleapis.com/shellcheck/shellcheck-${SHELLCHECK_VERSION}.linux.x86_64.tar.xz" | tar --xz -xf - --directory /tmp/
Expand Down
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1597df2

Please sign in to comment.