From 877aa6bfbd8c972ea6eafd75fd7b1ceccf539499 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Mon, 31 May 2021 13:55:45 +0000 Subject: [PATCH] Remove Travis CI All of these checks are now done by Cirrus, and Travis is being phased out by Bitcoin Core. --- .travis.yml | 38 ------------------------ .travis/check-project-tags | 61 -------------------------------------- .travis/check-tbb-tags | 24 --------------- 3 files changed, 123 deletions(-) delete mode 100644 .travis.yml delete mode 100755 .travis/check-project-tags delete mode 100755 .travis/check-tbb-tags diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 33deff7..0000000 --- a/.travis.yml +++ /dev/null @@ -1,38 +0,0 @@ -language: go -go: - - "1.x" - -notifications: - irc: - channels: - - "chat.freenode.net#namecoin-dev" - on_success: never - -addons: - apt: - packages: - - libyaml-libyaml-perl - - libtemplate-perl - - libio-handle-util-perl - - libio-all-perl - - libio-captureoutput-perl - - libjson-perl - - libpath-tiny-perl - - libstring-shellquote-perl - - libsort-versions-perl - - libdigest-sha-perl - - libdata-uuid-perl - - libdata-dump-perl - - libfile-copy-recursive-perl - - git - - runc - - mercurial - -sudo: false - -install: - - make submodule-update -script: - - ./.travis/check-project-tags - - ./.travis/check-tbb-tags - diff --git a/.travis/check-project-tags b/.travis/check-project-tags deleted file mode 100755 index 58ddef6..0000000 --- a/.travis/check-project-tags +++ /dev/null @@ -1,61 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail -shopt -s failglob - -FAIL=0 - -for PROJECTPATH in ./projects/* -do - PROJECT=$(basename ${PROJECTPATH}) - - # Tor devs are in charge of their dependencies - if [[ -e "./tor-browser-build/projects/${PROJECT}" || "${PROJECT}" = goxcrypto* || "${PROJECT}" = goxnet* || "${PROJECT}" = goxsys* ]] - then - continue - fi - - # Electrum devs are in charge of their dependencies - PROJECT_IS_ELECTRUM_DEP=1 - grep "project: ${PROJECT}" ./projects/electrum-nmc/config > /dev/null || PROJECT_IS_ELECTRUM_DEP=0 - if [ "$PROJECT_IS_ELECTRUM_DEP" = 1 ] - then - continue - fi - - # x509-signature-splice branch depends on Go version, so it won't always be the latest - if [ "${PROJECT}" = "gox509signaturesplice" ] - then - continue - fi - - GIT_REV=$(./rbm/rbm showconf ${PROJECT} git_hash) - - GIT_URL=$(./rbm/rbm showconf ${PROJECT} git_url) - - REMOTE_TAGS=$(git ls-remote --tags "${GIT_URL}") - if [ "${REMOTE_TAGS}" = "" ] - then - # There are no tags on the remote Git repo, so pretend HEAD is the latest. - LATEST_TAG=HEAD - else - LATEST_TAG=$(git ls-remote --tags "${GIT_URL}" | grep -v '\^{}' | awk '{print $2}' | awk -F"/" '{print $3}' | sort -V | tail --lines=1) - fi - LATEST_INFO=$(git ls-remote "${GIT_URL}" HEAD ${LATEST_TAG} ${LATEST_TAG}^{}) - - PROJECT_FAIL=0 - echo "${LATEST_INFO}" | grep ${GIT_REV} > /dev/null || PROJECT_FAIL=1 - if [ "${PROJECT_FAIL}" = 1 ] - then - FAIL=1 - echo "${PROJECT}: rbm uses ${GIT_REV}, latest at remote ${GIT_URL} are: -${LATEST_INFO}" - fi -done - -if [ "${FAIL}" = 1 ] -then - exit 1 -fi - -exit 0 diff --git a/.travis/check-tbb-tags b/.travis/check-tbb-tags deleted file mode 100755 index c495399..0000000 --- a/.travis/check-tbb-tags +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -set -eu -o pipefail -shopt -s failglob - -FAIL=0 - -GIT_TAG=$(git submodule status tor-browser-build | awk '{print $3}') - -GIT_URL=https://git.torproject.org/builders/tor-browser-build.git - -LATEST_TAG=$(git ls-remote --tags "${GIT_URL}" | grep 'tbb' | grep -v '\^{}' | awk '{print $2}' | awk -F"/" '{print $3}' | sort -V | tail --lines=1) -if [ "${GIT_TAG}" != "(${LATEST_TAG})" ] -then - FAIL=1 - echo "tor-browser-build: submodule uses ${GIT_TAG}, latest tag is ${LATEST_TAG}" -fi - -if [ "${FAIL}" = 1 ] -then - exit 1 -fi - -exit 0