-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bring codebase more inline with Bitcoin Core
Based on work done by cevap on cevap/ion
- Loading branch information
1 parent
a44783e
commit 759071e
Showing
1,272 changed files
with
274,352 additions
and
7,791 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
src/clientversion.cpp export-subst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
QMAKE_CXX.INCDIRS = \ | ||
/usr/include/c++/5 \ | ||
/usr/include/x86_64-linux-gnu/c++/5 \ | ||
/usr/include/c++/5/backward \ | ||
/usr/lib/gcc/x86_64-linux-gnu/5/include \ | ||
/usr/local/include \ | ||
/usr/lib/gcc/x86_64-linux-gnu/5/include-fixed \ | ||
/usr/include/x86_64-linux-gnu \ | ||
/usr/include | ||
QMAKE_CXX.LIBDIRS = \ | ||
/usr/lib/gcc/x86_64-linux-gnu/5 \ | ||
/usr/lib/x86_64-linux-gnu \ | ||
/usr/lib \ | ||
/lib/x86_64-linux-gnu \ | ||
/lib | ||
QMAKE_CXX.QT_COMPILER_STDCXX = 199711L | ||
QMAKE_CXX.QT_GCC_MAJOR_VERSION = 5 | ||
QMAKE_CXX.QT_GCC_MINOR_VERSION = 4 | ||
QMAKE_CXX.QT_GCC_PATCH_VERSION = 1 | ||
QMAKE_CXX.COMPILER_MACROS = \ | ||
QT_COMPILER_STDCXX \ | ||
QT_GCC_MAJOR_VERSION \ | ||
QT_GCC_MINOR_VERSION \ | ||
QT_GCC_PATCH_VERSION | ||
QMAKE_DEFAULT_INCDIRS = \ | ||
/home/tor/go/src/github.com/cevap/ion/depends/x86_64-w64-mingw32/include \ | ||
/usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/include/c++ \ | ||
/usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/include/c++/x86_64-w64-mingw32 \ | ||
/usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/include/c++/backward \ | ||
/usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/include \ | ||
/usr/lib/gcc/x86_64-w64-mingw32/6.2-win32/include-fixed \ | ||
/usr/x86_64-w64-mingw32/include | ||
QMAKE_DEFAULT_LIBDIRS = \ | ||
/usr/lib/gcc/x86_64-w64-mingw32/6.2-win32 \ | ||
/usr/x86_64-w64-mingw32/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,75 @@ | ||
language: cpp | ||
sudo: required | ||
dist: trusty | ||
sudo: false | ||
compiler: | ||
- clang | ||
- gcc | ||
os: linux | ||
language: generic | ||
cache: | ||
directories: | ||
- $HOME/ionomy/ion/src/leveldb | ||
- $HOME/ionomy/ion/src/secp256k1 | ||
addons: | ||
apt: | ||
sources: | ||
- sourceline: 'ppa:bitcoin/bitcoin' | ||
packages: | ||
- autoconf | ||
- autotools-dev | ||
- build-essential | ||
- libboost-all-dev | ||
- libcrypto++-dev | ||
- libdb4.8++-dev | ||
- libdb4.8-dev | ||
- libevent-dev | ||
- libgmp-dev | ||
- libminiupnpc-dev | ||
- libprotobuf-dev | ||
- libqt5core5a | ||
- libqt5dbus5 | ||
- libqt5gui5 | ||
- libssl-dev | ||
- libtool | ||
- pkg-config | ||
- protobuf-compiler | ||
- qttools5-dev | ||
- qttools5-dev-tools | ||
- depends/built | ||
- depends/sdk-sources | ||
- $HOME/.ccache | ||
env: | ||
global: | ||
- MAKEJOBS=-j3 | ||
- RUN_TESTS=false | ||
- CHECK_DOC=0 | ||
- BOOST_TEST_RANDOM=1$TRAVIS_BUILD_ID | ||
- CCACHE_SIZE=100M | ||
- CCACHE_TEMPDIR=/tmp/.ccache-temp | ||
- CCACHE_COMPRESS=1 | ||
- BASE_OUTDIR=$TRAVIS_BUILD_DIR/out | ||
- SDK_URL=https://ioncore.org/depends-sources/sdks | ||
- PYTHON_DEBUG=1 | ||
- WINEDEBUG=fixme-all | ||
matrix: | ||
# ARM | ||
- HOST=arm-linux-gnueabihf PACKAGES="g++-arm-linux-gnueabihf" DEP_OPTS="NO_QT=1" CHECK_DOC=1 GOAL="install" ION_CONFIG="--enable-glibc-back-compat --enable-reduce-exports" | ||
# Win32 | ||
- HOST=i686-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 nsis g++-mingw-w64-i686 wine1.6 bc" RUN_TESTS=true GOAL="install" ION_CONFIG="--enable-reduce-exports" | ||
# 32-bit + dash | ||
- HOST=i686-pc-linux-gnu PACKAGES="g++-multilib bc python3-zmq" DEP_OPTS="NO_QT=1" RUN_TESTS=true GOAL="install" ION_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++" USE_SHELL="/bin/dash" | ||
# Win64 | ||
- HOST=x86_64-w64-mingw32 DPKG_ADD_ARCH="i386" DEP_OPTS="NO_QT=1" PACKAGES="python3 nsis g++-mingw-w64-x86-64 wine1.6 bc" RUN_TESTS=true GOAL="install" ION_CONFIG="--enable-reduce-exports" | ||
# iond | ||
- HOST=x86_64-unknown-linux-gnu PACKAGES="bc python3-zmq" DEP_OPTS="NO_QT=1 NO_UPNP=1 DEBUG=1" RUN_TESTS=true GOAL="install" ION_CONFIG="--enable-zmq --enable-glibc-back-compat --enable-reduce-exports CPPFLAGS=-DDEBUG_LOCKORDER" | ||
# No wallet | ||
- HOST=x86_64-unknown-linux-gnu PACKAGES="python3" DEP_OPTS="NO_WALLET=1" RUN_TESTS=true GOAL="install" ION_CONFIG="--enable-glibc-back-compat --enable-reduce-exports" | ||
# Cross-Mac | ||
- HOST=x86_64-apple-darwin11 PACKAGES="cmake imagemagick libcap-dev librsvg2-bin libz-dev libbz2-dev libtiff-tools python-dev" ION_CONFIG="--enable-gui --enable-reduce-exports" OSX_SDK=10.11 GOAL="deploy" | ||
|
||
before_install: | ||
- export PATH=$(echo $PATH | tr ':' "\n" | sed '/\/opt\/python/d' | tr "\n" ":" | sed "s|::|:|g") | ||
install: | ||
- if [ -n "$DPKG_ADD_ARCH" ]; then sudo dpkg --add-architecture "$DPKG_ADD_ARCH" ; fi | ||
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get update; fi | ||
- if [ -n "$PACKAGES" ]; then travis_retry sudo apt-get install --no-install-recommends --no-upgrade -qq $PACKAGES; fi | ||
before_script: | ||
- chmod 755 src/leveldb/build_detect_platform | ||
# Clang is not system wide. This is a work around. | ||
- $CC --version | ||
- which $CC | ||
- export CC=`which $CC` | ||
- if [ "$TRAVIS_EVENT_TYPE" = "pull_request" ]; then contrib/devtools/commit-script-check.sh $TRAVIS_COMMIT_RANGE; fi | ||
- unset CC; unset CXX | ||
- if [ "$CHECK_DOC" = 1 ]; then contrib/devtools/check-doc.py; fi | ||
- mkdir -p depends/SDKs depends/sdk-sources | ||
- if [ -n "$OSX_SDK" -a ! -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then curl --location --fail $SDK_URL/MacOSX${OSX_SDK}.sdk.tar.gz -o depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi | ||
- if [ -n "$OSX_SDK" -a -f depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz ]; then tar -C depends/SDKs -xf depends/sdk-sources/MacOSX${OSX_SDK}.sdk.tar.gz; fi | ||
- make $MAKEJOBS -C depends HOST=$HOST $DEP_OPTS | ||
script: | ||
- cd src | ||
- make -f makefile.unix | ||
- cd .. | ||
- qmake -qt=qt5 USE_UPNP=- "QMAKE_CXX=$CXX" "QMAKE_CC=$CC" | ||
- make | ||
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_REPO_SLUG" = "ion/ion" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then while read LINE; do travis_retry gpg --keyserver hkp://subset.pool.sks-keyservers.net --recv-keys $LINE; done < contrib/verify-commits/trusted-keys; fi | ||
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_REPO_SLUG" = "ion/ion" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then git fetch --unshallow; fi | ||
- if [ "$CHECK_DOC" = 1 -a "$TRAVIS_REPO_SLUG" = "ion/ion" -a "$TRAVIS_PULL_REQUEST" = "false" ]; then contrib/verify-commits/verify-commits.sh; fi | ||
- export TRAVIS_COMMIT_LOG=`git log --format=fuller -1` | ||
- if [ -n "$USE_SHELL" ]; then export CONFIG_SHELL="$USE_SHELL"; fi | ||
- OUTDIR=$BASE_OUTDIR/$TRAVIS_PULL_REQUEST/$TRAVIS_JOB_NUMBER-$HOST | ||
- ION_CONFIG_ALL="--disable-dependency-tracking --prefix=$TRAVIS_BUILD_DIR/depends/$HOST --bindir=$OUTDIR/bin --libdir=$OUTDIR/lib" | ||
- depends/$HOST/native/bin/ccache --max-size=$CCACHE_SIZE | ||
- test -n "$USE_SHELL" && eval '"$USE_SHELL" -c "./autogen.sh"' || ./autogen.sh | ||
- mkdir build && cd build | ||
- ../configure --cache-file=config.cache $ION_CONFIG_ALL $ION_CONFIG || ( cat config.log && false) | ||
- make distdir VERSION=$HOST | ||
- cd ion-$HOST | ||
- ./configure --cache-file=../config.cache $ION_CONFIG_ALL $ION_CONFIG || ( cat config.log && false) | ||
- make $MAKEJOBS $GOAL || ( echo "Build failure. Verbose build follows." && make $GOAL V=1 ; false ) | ||
- export LD_LIBRARY_PATH=$TRAVIS_BUILD_DIR/depends/$HOST/lib | ||
- if [ "$RUN_TESTS" = "true" ]; then travis_wait 30 make $MAKEJOBS check VERBOSE=1; fi | ||
- if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then extended="--extended --exclude pruning"; fi | ||
- if [ "$RUN_TESTS" = "true" ]; then test/functional/test_runner.py --coverage --quiet ${extended}; fi | ||
after_script: | ||
- echo $TRAVIS_COMMIT_RANGE | ||
- echo $TRAVIS_COMMIT_LOG |
Oops, something went wrong.