From 06fbbc58468c47f800d5de2ec40dc9b39d72fa4e Mon Sep 17 00:00:00 2001 From: Markus Walther Date: Fri, 9 Feb 2024 13:32:41 +0000 Subject: [PATCH] scripts: remove old travis-ci stuff --- scripts/ci.sh | 18 ------------------ scripts/lint-changes.sh | 5 ----- 2 files changed, 23 deletions(-) delete mode 100755 scripts/ci.sh diff --git a/scripts/ci.sh b/scripts/ci.sh deleted file mode 100755 index acef7fb5..00000000 --- a/scripts/ci.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# This script simulates a CI run. -# Might not work on windows since race tests are broken. -# Prerequisites must be installed manually: -# - ifacemaker -> GO111MODULE=off go get github.com/vburenin/ifacemaker -# - golangci-lint -> https://github.com/golangci/golangci-lint/releases -# - test-data -> pushd test/cs-demos && git lfs pull -I '*' && popd - -set -e - -# get the commands straight form the travis config -ci_commands=$(sed -n '/^script:/,/^\S/p' .travis.yml | grep -E '^ - ' | cut -c 5-) - -while read -r cmd; do - echo "running $cmd:" - $cmd - echo -e '\n' -done <<<"$ci_commands" diff --git a/scripts/lint-changes.sh b/scripts/lint-changes.sh index 3e186bcf..86574a7b 100755 --- a/scripts/lint-changes.sh +++ b/scripts/lint-changes.sh @@ -2,11 +2,6 @@ set -e -# for the CI -if [[ "$TRAVIS_COMMIT_RANGE" != "" ]]; then - commit_range=${TRAVIS_COMMIT_RANGE/.../..} && git diff $commit_range >/dev/null && base_rev=$commit_range || true -fi - # default reference/baseline is master if [[ "$base_rev" == "" ]]; then base_rev='origin/master'