|
1 | 1 | # Copyright (c) 2019 The Ion Core developers
|
2 |
| -# This is a sample build configuration for C++ – Make. |
3 |
| -# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples. |
4 |
| -# Only use spaces to indent your .yml configuration. |
5 |
| -# ----- |
6 |
| -# You can specify a custom docker image from Docker Hub as your build environment. |
| 2 | +version: 2.1 |
| 3 | +jobs: |
| 4 | + lint_all: |
| 5 | + docker: |
| 6 | + - image: ioncoin/gitian:latest |
| 7 | + user: root |
| 8 | + parallelism: 4 |
| 9 | + environment: |
| 10 | + HOST: x86_64-linux-gnu |
| 11 | + JOBS: 4 |
| 12 | + steps: |
| 13 | + - run: |
| 14 | + command: | |
| 15 | + apt-get -y update |
| 16 | + apt-get -y install python-pip |
| 17 | + git clone --depth 1 https://bitbucket.org/ioncoin/ion . |
| 18 | + source .travis/lint_04_install.sh |
| 19 | + source .travis/lint_05_before_script.sh |
| 20 | + # LevelDB |
| 21 | + git remote add -f leveldb https://github.com/bitcoin-core/leveldb.git |
| 22 | + # secp256k1 |
| 23 | + git remote add -f secp256k1 https://github.com/bitcoin-core/secp256k1.git |
| 24 | + # ctaes |
| 25 | + git remote add -f ctaes https://github.com/bitcoin-core/ctaes |
| 26 | + # univalue |
| 27 | + git remote add -f univalue https://github.com/jgarzik/univalue |
| 28 | + # snap |
| 29 | + git remote add -f snap https://github.com/ioncoincore/ion |
| 30 | + git rm -rf src/leveldb |
| 31 | + git rm -rf src/secp256k1 |
| 32 | + git rm -rf src/crypto/ctaes |
| 33 | + git rm -rf src/univalue |
| 34 | + git rm -rf snap |
| 35 | + git add . |
| 36 | + git config --global user.email "[email protected]" |
| 37 | + git config --global user.name "Lint Check" |
| 38 | + git commit -m "Set up for subtrees" |
| 39 | + # leveldb |
| 40 | + git subtree add --prefix src/leveldb leveldb bitcoin-fork --squash |
| 41 | + # secp256k1 |
| 42 | + git subtree add --prefix src/secp256k1 secp256k1 master --squash |
| 43 | + # ctaes |
| 44 | + git subtree add --prefix src/crypto/ctaes ctaes master --squash |
| 45 | + # univalue |
| 46 | + git subtree add --prefix src/univalue univalue 9f0b9975925b202ab130714e5422f8dd8bf40ac3 --squash |
| 47 | + # snap |
| 48 | + git subtree add --prefix snap snap snap --squash |
| 49 | + source .travis/lint_06_script.sh |
| 50 | + x86_64_bionic: |
| 51 | + docker: |
| 52 | + - image: ioncoin/gitian:latest |
| 53 | + user: root |
| 54 | + environment: |
| 55 | + HOST: x86_64-linux-gnu |
| 56 | + JOBS: 4 |
| 57 | + steps: |
| 58 | + - checkout |
| 59 | + - run: |
| 60 | + command: | |
| 61 | + git submodule update --init --recursive |
| 62 | + apt-get -y update |
| 63 | + apt-get -y install pkg-config autoconf libtool automake bsdmainutils ca-certificates python3 cmake libxkbcommon0 gcc-8 g++-8 |
| 64 | + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 |
| 65 | + update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100 |
| 66 | + update-alternatives --install /usr/bin/${HOST}-gcc ${HOST}-gcc /usr/bin/${HOST}-gcc-8 100 |
| 67 | + update-alternatives --install /usr/bin/${HOST}-g++ ${HOST}-g++ /usr/bin/${HOST}-g++-8 100 |
| 68 | + make -j${JOBS} -C depends HOST=${HOST} |
| 69 | + ./autogen.sh |
| 70 | + ./configure --host=${HOST} --prefix=`pwd`/depends/${HOST} --enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++ |
| 71 | + make -j${JOBS} |
| 72 | + i686_bionic: |
| 73 | + docker: |
| 74 | + - image: ioncoin/gitian:latest |
| 75 | + user: root |
| 76 | + environment: |
| 77 | + HOST: i686-linux-gnu |
| 78 | + JOBS: 4 |
| 79 | + steps: |
| 80 | + - checkout |
| 81 | + - run: |
| 82 | + command: | |
| 83 | + git submodule update --init --recursive |
| 84 | + apt-get -y update |
| 85 | + apt-get -y install pkg-config autoconf libtool automake bsdmainutils ca-certificates python3 cmake libxkbcommon0 g++-8-multilib gcc-8-multilib gcc-8 g++-8 |
| 86 | + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 |
| 87 | + update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100 |
| 88 | + make -j${JOBS} -C depends HOST=${HOST} |
| 89 | + ./autogen.sh |
| 90 | + ./configure --host=${HOST} --prefix=`pwd`/depends/${HOST} --enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++ |
| 91 | + make -j${JOBS} |
| 92 | + x86_64_xenial: |
| 93 | + docker: |
| 94 | + - image: circleci/buildpack-deps:16.04 |
| 95 | + user: root |
| 96 | + environment: |
| 97 | + HOST: x86_64-linux-gnu |
| 98 | + JOBS: 4 |
| 99 | + steps: |
| 100 | + - checkout |
| 101 | + - run: |
| 102 | + command: | |
| 103 | + git submodule update --init --recursive |
| 104 | + apt-get -y update |
| 105 | + apt-get -y install cmake python3-zmq qtbase5-dev qttools5-dev-tools libssl-dev libevent-dev bsdmainutils libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libdb5.3++-dev libminiupnpc-dev libzmq3-dev libprotobuf-dev protobuf-compiler libqrencode-dev libgmp-dev |
| 106 | + wget https://github.com/codablock/bls-signatures/archive/v20181101.zip |
| 107 | + unzip v20181101.zip |
| 108 | + cd bls-signatures-20181101 |
| 109 | + git submodule update --init --recursive |
| 110 | + mkdir build |
| 111 | + cd build |
| 112 | + cmake ../ |
| 113 | + cmake --build . -- -j 4 |
| 114 | + make install |
| 115 | + cd ../.. |
| 116 | + ./autogen.sh |
| 117 | + ./configure --host=${HOST} --prefix=/ --enable-zmq --with-incompatible-bdb --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --disable-hardening --disable-asm |
| 118 | + make -j${JOBS} |
| 119 | + arm32_bionic: |
| 120 | + docker: |
| 121 | + - image: ioncoin/gitian:latest |
| 122 | + user: root |
| 123 | + environment: |
| 124 | + HOST: arm-linux-gnueabihf |
| 125 | + JOBS: 4 |
| 126 | + HOST_LDFLAGS: "-static-libstdc++" |
| 127 | + steps: |
| 128 | + - checkout |
| 129 | + - run: |
| 130 | + command: | |
| 131 | + git submodule update --init --recursive |
| 132 | + apt-get -y update |
| 133 | + apt-get -y install pkg-config autoconf libtool automake bsdmainutils ca-certificates python3 cmake libxkbcommon0 gcc-8 g++-8 g++-8-arm-linux-gnueabihf gcc-8-arm-linux-gnueabihf binutils-arm-linux-gnueabihf g++-8-multilib gcc-8-multilib |
| 134 | + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 |
| 135 | + update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100 |
| 136 | + update-alternatives --install /usr/bin/${HOST}-gcc ${HOST}-gcc /usr/bin/${HOST}-gcc-8 100 |
| 137 | + update-alternatives --install /usr/bin/${HOST}-g++ ${HOST}-g++ /usr/bin/${HOST}-g++-8 100 |
| 138 | + make -j${JOBS} -C depends HOST=${HOST} |
| 139 | + ./autogen.sh |
| 140 | + ./configure --host=${HOST} --prefix=`pwd`/depends//${HOST} --enable-glibc-back-compat --enable-reduce-exports --disable-ccache --disable-maintainer-mode --disable-dependency-tracking CFLAGS="${HOST_CFLAGS}" CXXFLAGS="${HOST_CXXFLAGS}" LDFLAGS="${HOST_LDFLAGS}" |
| 141 | + make -j${JOBS} |
| 142 | + arm64_bionic: |
| 143 | + docker: |
| 144 | + - image: ioncoin/gitian:latest |
| 145 | + user: root |
| 146 | + environment: |
| 147 | + HOST: aarch64-linux-gnu |
| 148 | + JOBS: 4 |
| 149 | + steps: |
| 150 | + - checkout |
| 151 | + - run: |
| 152 | + command: | |
| 153 | + git submodule update --init --recursive |
| 154 | + apt-get -y update |
| 155 | + apt-get -y install pkg-config autoconf libtool automake bsdmainutils ca-certificates python3 cmake libxkbcommon0 gcc-8 g++-8 g++-8-aarch64-linux-gnu gcc-8-aarch64-linux-gnu binutils-aarch64-linux-gnu g++-8-multilib gcc-8-multilib |
| 156 | + update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100 |
| 157 | + update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100 |
| 158 | + update-alternatives --install /usr/bin/${HOST}-gcc ${HOST}-gcc /usr/bin/${HOST}-gcc-8 100 |
| 159 | + update-alternatives --install /usr/bin/${HOST}-g++ ${HOST}-g++ /usr/bin/${HOST}-g++-8 100 |
| 160 | + make -j${JOBS} -C depends HOST=${HOST} |
| 161 | + ./autogen.sh |
| 162 | + ./configure --host=${HOST} --prefix=`pwd`/depends/${HOST} --enable-glibc-back-compat --enable-reduce-exports |
| 163 | + make -j${JOBS} |
| 164 | + win32_bionic: |
| 165 | + docker: |
| 166 | + - image: ioncoin/gitian:latest |
| 167 | + user: root |
| 168 | + environment: |
| 169 | + HOST: i686-w64-mingw32 |
| 170 | + JOBS: 4 |
| 171 | + steps: |
| 172 | + - checkout |
| 173 | + - run: |
| 174 | + command: | |
| 175 | + git submodule update --init --recursive |
| 176 | + apt-get -y update |
| 177 | + apt-get -y install pkg-config autoconf libtool automake bsdmainutils ca-certificates python3 cmake libxkbcommon0 mingw-w64 g++-mingw-w64 g++-multilib gcc-multilib |
| 178 | + update-alternatives --install /usr/bin/i686-w64-mingw32-gcc i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix 100 |
| 179 | + update-alternatives --install /usr/bin/i686-w64-mingw32-g++ i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix 100 |
| 180 | + make -j${JOBS} -C depends HOST=${HOST} |
| 181 | + ./autogen.sh |
| 182 | + ./configure --host=${HOST} --prefix=`pwd`/depends/${HOST} --enable-reduce-exports |
| 183 | + make -j${JOBS} |
| 184 | + win64_bionic: |
| 185 | + docker: |
| 186 | + - image: ioncoin/gitian:latest |
| 187 | + user: root |
| 188 | + environment: |
| 189 | + HOST: x86_64-w64-mingw32 |
| 190 | + JOBS: 4 |
| 191 | + steps: |
| 192 | + - checkout |
| 193 | + - run: |
| 194 | + command: | |
| 195 | + git submodule update --init --recursive |
| 196 | + apt-get -y update |
| 197 | + apt-get -y install pkg-config autoconf libtool automake bsdmainutils ca-certificates python3 cmake libxkbcommon0 mingw-w64 g++-mingw-w64 g++-multilib gcc-multilib |
| 198 | + update-alternatives --install /usr/bin/x86_64-w64-mingw32-gcc x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix 100 |
| 199 | + update-alternatives --install /usr/bin/x86_64-w64-mingw32-g++ x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix 100 |
| 200 | + make -j${JOBS} -C depends HOST=${HOST} |
| 201 | + ./autogen.sh |
| 202 | + ./configure --host=${HOST} --prefix=`pwd`/depends/${HOST} --enable-reduce-exports |
| 203 | + make -j${JOBS} |
| 204 | + mac_bionic: |
| 205 | + docker: |
| 206 | + - image: ioncoin/gitian:latest |
| 207 | + user: root |
| 208 | + environment: |
| 209 | + HOST: x86_64-apple-darwin16 |
| 210 | + JOBS: 4 |
| 211 | + OSX_SDK: 10.11 |
| 212 | + steps: |
| 213 | + - checkout |
| 214 | + - run: |
| 215 | + command: | |
| 216 | + git submodule update --init --recursive |
| 217 | + apt-get -y update |
| 218 | + apt-get -y install pkg-config autoconf libtool automake bsdmainutils ca-certificates python3 cmake libxkbcommon0 librsvg2-bin libtiff-tools imagemagick libcap-dev libz-dev libbz2-dev python3-dev python3-setuptools fonts-tuffy g++-8-multilib gcc-8-multilib |
| 219 | + wget https://github.com/gitianuser/MacOSX-SDKs/releases/download/MacOSX10.11.sdk/MacOSX10.11.sdk.tar.xz |
| 220 | + mkdir -p `pwd`/depends/SDKs |
| 221 | + echo "Extracting Mac SDK" |
| 222 | + tar -C `pwd`/depends/SDKs -xJf ./MacOSX10.11.sdk.tar.xz |
| 223 | + make -j${JOBS} -C depends HOST=${HOST} |
| 224 | + ./autogen.sh |
| 225 | + ./configure --host=${HOST} --prefix=`pwd`/depends/${HOST} --enable-reduce-exports --enable-werror --disable-ccache --disable-maintainer-mode --disable-dependency-tracking |
| 226 | + make -j${JOBS} |
| 227 | + snapcraft_build: |
| 228 | + docker: |
| 229 | + - image: cibuilds/snapcraft:core18 |
| 230 | + steps: |
| 231 | + - checkout |
| 232 | + - run: |
| 233 | + command: snapcraft |
| 234 | +workflows: |
| 235 | + version: 2.1 |
| 236 | + FullCheck: |
| 237 | + jobs: |
| 238 | + - lint_all |
| 239 | + - x86_64_bionic: |
| 240 | + requires: |
| 241 | + - lint_all |
| 242 | + - i686_bionic: |
| 243 | + requires: |
| 244 | + - lint_all |
| 245 | + - x86_64_xenial: |
| 246 | + requires: |
| 247 | + - lint_all |
| 248 | + - arm32_bionic: |
| 249 | + requires: |
| 250 | + - lint_all |
| 251 | + - arm64_bionic: |
| 252 | + requires: |
| 253 | + - lint_all |
| 254 | + - win32_bionic: |
| 255 | + requires: |
| 256 | + - lint_all |
| 257 | + - win64_bionic: |
| 258 | + requires: |
| 259 | + - lint_all |
| 260 | + - mac_bionic: |
| 261 | + requires: |
| 262 | + - lint_all |
| 263 | + #- snapcraft_build: |
| 264 | + # requires: |
| 265 | + # - lint_all |
0 commit comments