From f959baabeb26710ecc439913fddc31f0beb61768 Mon Sep 17 00:00:00 2001 From: Chris Berry <73450+anotherchrisberry@users.noreply.github.com> Date: Tue, 18 Aug 2020 14:52:03 -0700 Subject: [PATCH] chore(build): remove TravisCI references (#534) --- README.md | 2 +- build_scripts/assert_package_bump.sh | 2 +- karma.conf.js | 2 +- travis/buildViaTravis.sh | 9 --------- travis/installViaTravis.sh | 20 -------------------- 5 files changed, 3 insertions(+), 32 deletions(-) delete mode 100755 travis/buildViaTravis.sh delete mode 100755 travis/installViaTravis.sh diff --git a/README.md b/README.md index ab19c0f3..6e247967 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Spinnaker Canary UI -[![Build Status](https://travis-ci.org/spinnaker/deck-kayenta.png?branch=master)](https://travis-ci.org/spinnaker/deck-kayenta) +![Branch Build](https://github.com/spinnaker/deck-kayenta/workflows/Branch%20Build/badge.svg) ## PR Process diff --git a/build_scripts/assert_package_bump.sh b/build_scripts/assert_package_bump.sh index 5be88bb1..fbc5e62a 100755 --- a/build_scripts/assert_package_bump.sh +++ b/build_scripts/assert_package_bump.sh @@ -10,7 +10,7 @@ if [[ $GITHUB_EVENT_NAME == "pull_request" && ( $GITHUB_BASE_REF != "master" || fi cd "$(dirname "$0")" || exit 1; -if [[ -n $TRAVIS || -n $GITHUB_ACTIONS ]] ; then +if [[ -n $GITHUB_ACTIONS ]] ; then echo "git fetch -q..." git fetch -q CI_TARGET_BRANCH=origin/master # dirname should maybe work in both cases? diff --git a/karma.conf.js b/karma.conf.js index d55adcd8..bb186833 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -47,7 +47,7 @@ module.exports = function (config) { // web server port port: 8081, - browsers: [process.env.TRAVIS || process.env.GITHUB_ACTIONS ? 'ChromeCI' : 'Chrome'], + browsers: [process.env.GITHUB_ACTIONS ? 'ChromeCI' : 'Chrome'], colors: true, diff --git a/travis/buildViaTravis.sh b/travis/buildViaTravis.sh deleted file mode 100755 index 2f8efc0e..00000000 --- a/travis/buildViaTravis.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -# This script will build the project. - -echo -e "Running unit tests..." -source ~/.nvm/nvm.sh -NODE_JS_VERSION=`node -e 'console.log(require("./package.json").engines.node.replace(/[^\d\.]/g, ""))'`; -nvm install $NODE_JS_VERSION - -./node_modules/.bin/karma start --single-run --coverage --no-auto-watch diff --git a/travis/installViaTravis.sh b/travis/installViaTravis.sh deleted file mode 100755 index 9fe3eae3..00000000 --- a/travis/installViaTravis.sh +++ /dev/null @@ -1,20 +0,0 @@ -#!/bin/bash -# This script will install the project. - -NODE_JS_VERSION=`node -e 'console.log(require("./package.json").engines.node.replace(/[^\d\.]/g, ""))'`; -echo -e "Installing/activating node v$NODE_JS_VERSION" - -# http://austinpray.com/ops/2015/09/20/change-travis-node-version.html -# Clear out whatever version of NVM Travis has. ; Their version of NVM is probably old. -rm -rf ~/.nvm -git clone https://github.com/creationix/nvm.git ~/.nvm - -# Checkout the latest stable nvm tag. -(cd ~/.nvm && git checkout `git describe --abbrev=0 --tags`) - -source ~/.nvm/nvm.sh - -nvm install $NODE_JS_VERSION -# Travis installs yarn v1.3.2 for some reason, but we want a recent version -npm install -g yarn@1.21.1 -yarn --frozen-lockfile