Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #62: Bump dependencies to latest as of 2019 09 29
32ec3cf Bump gounits to 2019-09-24 (JeremyRand) b9c1cf0 Bump goservice to pull in signal.Notify bugfix (JeremyRand) 7620771 Bump godns to 1.1.19 (JeremyRand) 46c7410 Bump tor-browser-build to tbb-9.0a7-build1 (JeremyRand) 98d8d2b Add Travis check for dependency versions (JeremyRand) Pull request description: Also add Travis check for dependency version updates.
- Loading branch information
Showing
9 changed files
with
137 additions
and
18 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,32 @@ | ||
language: go | ||
go: | ||
- "1.x" | ||
|
||
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 | ||
|
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,61 @@ | ||
#!/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 |
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,24 @@ | ||
#!/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 -v '\^{}' | awk '{print $2}' | awk -F"/" '{print $3}' | sort -V | tail --lines=1) | ||
if [ "${GIT_TAG}" != "(${LATEST_TAG})" ] | ||
then | ||
FAIL=1 | ||
echo "${PROJECT}: submodule uses ${GIT_REV}, latest tag is ${LATEST_TAG}" | ||
fi | ||
|
||
if [ "${FAIL}" = 1 ] | ||
then | ||
exit 1 | ||
fi | ||
|
||
exit 0 |
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
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
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
Submodule tor-browser-build
updated
from 9fde9f to 9d2531