From d1bf6e50c190d39fb5c3efea6dc9926ca31607a2 Mon Sep 17 00:00:00 2001 From: National Bitcoiner Date: Sun, 21 Jun 2020 20:28:32 +0300 Subject: [PATCH] Remove makefile and CI config --- .gitignore | 8 --- .gitlab-ci.yml | 160 ------------------------------------------------- Makefile | 79 ------------------------ 3 files changed, 247 deletions(-) delete mode 100644 .gitlab-ci.yml delete mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 23e1078..7c95c2f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,12 +5,4 @@ blockbook notes.txt debug* .vscode -docker/blockbook -build/pkg-defs -build/blockbook -build/ldb -build/sst_dump -build/*.deb -.bin-image -.deb-image \.idea/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index bda1955..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,160 +0,0 @@ -stages: - - build - - test - - backend-deploy-and-test - -build: - stage: build - only: - - master - tags: - - blockbook - script: make build - -unit-test: - stage: test - only: - - master - tags: - - blockbook - script: make test - -integration-test: - stage: test - only: - - schedules - tags: - - blockbook - script: make test-integration ARGS="-run='TestIntegration/(bcash|bgold|bitcoin|dash|dogecoin|litecoin|vertcoin|zcash)=main/'" - -backend-deploy-and-test-bcash: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/bcash.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh bcash - -backend-deploy-and-test-bgold: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/bgold.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh bgold - -backend-deploy-and-test-bitcoin: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/bitcoin.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh bitcoin - -backend-deploy-and-test-dash: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/dash.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh dash - -backend-deploy-and-test-digibyte: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/digibyte.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh digibyte - -backend-deploy-and-test-dogecoin: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/dogecoin.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh dogecoin - -backend-deploy-and-test-litecoin: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/litecoin.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh litecoin - -backend-deploy-and-test-namecoin: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/namecoin.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh namecoin - -backend-deploy-and-test-vertcoin: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/vertcoin.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh vertcoin - -backend-deploy-and-test-zcash: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/zcash.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh zcash - -backend-deploy-and-test-bitcoin_testnet: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/bitcoin_testnet.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh bitcoin_testnet bitcoin-testnet bitcoin=test testnet3/debug.log - -backend-deploy-and-test-ethereum_testnet_ropsten: - stage: backend-deploy-and-test - only: - refs: - - master - changes: - - configs/coins/ethereum_testnet_ropsten.json - tags: - - blockbook - script: ./contrib/scripts/backend-deploy-and-test.sh ethereum_testnet_ropsten ethereum-testnet-ropsten ethereum=test ethereum_testnet_ropsten.log diff --git a/Makefile b/Makefile deleted file mode 100644 index 7a32acf..0000000 --- a/Makefile +++ /dev/null @@ -1,79 +0,0 @@ -BIN_IMAGE = blockbook-build -DEB_IMAGE = blockbook-build-deb -PACKAGER = $(shell id -u):$(shell id -g) -NO_CACHE = false -UPDATE_VENDOR = 1 -ARGS ?= - -TARGETS=$(subst .json,, $(shell ls configs/coins)) - -.PHONY: build build-debug test deb - -build: .bin-image - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v "$(CURDIR):/src" -v "$(CURDIR)/build:/out" $(BIN_IMAGE) make build ARGS="$(ARGS)" - -build-debug: .bin-image - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v "$(CURDIR):/src" -v "$(CURDIR)/build:/out" $(BIN_IMAGE) make build-debug ARGS="$(ARGS)" - -test: .bin-image - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v "$(CURDIR):/src" --network="host" $(BIN_IMAGE) make test ARGS="$(ARGS)" - -test-integration: .bin-image - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v "$(CURDIR):/src" --network="host" $(BIN_IMAGE) make test-integration ARGS="$(ARGS)" - -test-all: .bin-image - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v "$(CURDIR):/src" --network="host" $(BIN_IMAGE) make test-all ARGS="$(ARGS)" - -deb-backend-%: .deb-image - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v "$(CURDIR):/src" -v "$(CURDIR)/build:/out" $(DEB_IMAGE) /build/build-deb.sh backend $* $(ARGS) - -deb-blockbook-%: .deb-image - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v "$(CURDIR):/src" -v "$(CURDIR)/build:/out" $(DEB_IMAGE) /build/build-deb.sh blockbook $* $(ARGS) - -deb-%: .deb-image - docker run -t --rm -e PACKAGER=$(PACKAGER) -e UPDATE_VENDOR=$(UPDATE_VENDOR) -v "$(CURDIR):/src" -v "$(CURDIR)/build:/out" $(DEB_IMAGE) /build/build-deb.sh all $* $(ARGS) - -deb-blockbook-all: clean-deb $(addprefix deb-blockbook-, $(TARGETS)) - -$(addprefix all-, $(TARGETS)): all-%: clean-deb build-images deb-% - -all: clean-deb build-images $(addprefix deb-, $(TARGETS)) - -build-images: clean-images - $(MAKE) .bin-image .deb-image - -.bin-image: - @if [ $$(build/tools/image_status.sh $(BIN_IMAGE):latest build/docker) != "ok" ]; then \ - echo "Building image $(BIN_IMAGE)..."; \ - docker build --no-cache=$(NO_CACHE) -t $(BIN_IMAGE) build/docker/bin; \ - else \ - echo "Image $(BIN_IMAGE) is up to date"; \ - fi - -.deb-image: .bin-image - @if [ $$(build/tools/image_status.sh $(DEB_IMAGE):latest build/docker) != "ok" ]; then \ - echo "Building image $(DEB_IMAGE)..."; \ - docker build --no-cache=$(NO_CACHE) -t $(DEB_IMAGE) build/docker/deb; \ - else \ - echo "Image $(DEB_IMAGE) is up to date"; \ - fi - -clean: clean-bin clean-deb - -clean-all: clean clean-images - -clean-bin: - find build -maxdepth 1 -type f -executable -delete - -clean-deb: - rm -rf build/pkg-defs - rm -f build/*.deb - -clean-images: clean-bin-image clean-deb-image - rm -f .bin-image .deb-image # remove obsolete tag files - -clean-bin-image: - - docker rmi $(BIN_IMAGE) - -clean-deb-image: - - docker rmi $(DEB_IMAGE)