Skip to content

Commit

Permalink
Merge pull request #22 from ckti-ion-pr/circleci-update
Browse files Browse the repository at this point in the history
Update to run circleci with github, add in focal build
  • Loading branch information
ckti authored Apr 10, 2021
2 parents 6d24c4d + 1207ce4 commit ba48de3
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 10 deletions.
38 changes: 32 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
command: |
apt-get -y update
apt-get -y install python-pip
git clone --depth 1 https://bitbucket.org/ioncoin/ion .
git clone --depth 1 https://github.com/ioncoincore/ion .
source .travis/lint_04_install.sh
source .travis/lint_05_before_script.sh
# LevelDB
Expand All @@ -26,12 +26,12 @@ jobs:
# univalue
git remote add -f univalue https://github.com/jgarzik/univalue
# snap
git remote add -f snap https://github.com/ioncoincore/ion
#git remote add -f snap https://github.com/ioncoincore/ion
git rm -rf src/leveldb
git rm -rf src/secp256k1
git rm -rf src/crypto/ctaes
git rm -rf src/univalue
git rm -rf snap
#git rm -rf snap
git add .
git config --global user.email "[email protected]"
git config --global user.name "Lint Check"
Expand All @@ -45,7 +45,7 @@ jobs:
# univalue
git subtree add --prefix src/univalue univalue 9f0b9975925b202ab130714e5422f8dd8bf40ac3 --squash
# snap
git subtree add --prefix snap snap snap --squash
#git subtree add --prefix snap snap snap --squash
source .travis/lint_06_script.sh
x86_64_bionic:
docker:
Expand Down Expand Up @@ -73,6 +73,28 @@ jobs:
python3 setup.py install
cd -
test/functional/test_runner.py
x86_64_focal:
docker:
- image: circleci/buildpack-deps:focal
user: root
environment:
HOST: x86_64-linux-gnu
JOBS: 4
steps:
- checkout
- run:
command: |
git submodule update --init --recursive
apt-get -y update
apt-get -y install pkg-config autoconf libtool automake bsdmainutils ca-certificates python3 cmake libxkbcommon0 gcc-8 g++-8 libpython3.9-dev python3-distutils
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 100
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 100
update-alternatives --install /usr/bin/${HOST}-gcc ${HOST}-gcc /usr/bin/${HOST}-gcc-8 100
update-alternatives --install /usr/bin/${HOST}-g++ ${HOST}-g++ /usr/bin/${HOST}-g++-8 100
make -j${JOBS} -C depends HOST=${HOST}
./autogen.sh
./configure --host=${HOST} --prefix=`pwd`/depends/${HOST} --enable-zmq --enable-glibc-back-compat --enable-reduce-exports LDFLAGS=-static-libstdc++
make -j${JOBS}
i686_bionic:
docker:
- image: ioncoin/gitian:latest
Expand Down Expand Up @@ -118,7 +140,7 @@ jobs:
make install
cd ../..
./autogen.sh
./configure --host=${HOST} --prefix=/ --enable-zmq --with-incompatible-bdb --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --disable-hardening --disable-asm
./configure --host=${HOST} --prefix=/ --enable-zmq --with-incompatible-bdb --with-gui=qt5 CPPFLAGS=-DDEBUG_LOCKORDER --disable-hardening --disable-asm --disable-tests
make -j${JOBS}
arm32_bionic:
docker:
Expand Down Expand Up @@ -226,7 +248,8 @@ jobs:
tar -C `pwd`/depends/SDKs -xJf ./MacOSX10.11.sdk.tar.xz
make -j${JOBS} -C depends HOST=${HOST}
./autogen.sh
./configure --host=${HOST} --prefix=`pwd`/depends/${HOST} --enable-reduce-exports --enable-werror --disable-ccache --disable-maintainer-mode --disable-dependency-tracking
./configure --host=${HOST} --prefix=`pwd`/depends/${HOST} --enable-reduce-exports --enable-werror --disable-ccache --disable-maintainer-mode --disable-dependency-tracking --disable-bench --disable-gui-tests
make -j${JOBS}
snapcraft_build:
docker:
Expand All @@ -249,6 +272,9 @@ workflows:
- x86_64_xenial:
requires:
- lint_all
- x86_64_focal:
requires:
- lint_all
- arm32_bionic:
requires:
- lint_all
Expand Down
6 changes: 3 additions & 3 deletions .travis/lint_04_install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

export LC_ALL=C

pip install codespell==1.13.0
pip install flake8==3.5.0
pip install vulture==0.29
pip2 install codespell==1.13.0
pip2 install flake8==3.5.0
pip2 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
2 changes: 1 addition & 1 deletion .travis/lint_06_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ contrib/devtools/git-subtree-check.sh src/leveldb
contrib/devtools/git-subtree-check.sh src/secp256k1
contrib/devtools/git-subtree-check.sh src/crypto/ctaes
contrib/devtools/git-subtree-check.sh src/univalue
contrib/devtools/git-subtree-check.sh snap
#contrib/devtools/git-subtree-check.sh snap

# Fails with error 10 as not all commands are documented
#contrib/devtools/check-doc.py
Expand Down

0 comments on commit ba48de3

Please sign in to comment.