From f9159ea2d994e14180fb02ab562f0119513e67cf Mon Sep 17 00:00:00 2001 From: 8cy <50817549+8cy@users.noreply.github.com> Date: Fri, 3 Apr 2020 02:48:28 -0700 Subject: 2020/04/03, 02:47, V1.2.2 --- node_modules/snekfetch/scripts/travis-deploy.sh | 29 ------------------------- node_modules/snekfetch/scripts/travis-test.sh | 14 ------------ 2 files changed, 43 deletions(-) delete mode 100644 node_modules/snekfetch/scripts/travis-deploy.sh delete mode 100644 node_modules/snekfetch/scripts/travis-test.sh (limited to 'node_modules/snekfetch/scripts') diff --git a/node_modules/snekfetch/scripts/travis-deploy.sh b/node_modules/snekfetch/scripts/travis-deploy.sh deleted file mode 100644 index 5af87dc..0000000 --- a/node_modules/snekfetch/scripts/travis-deploy.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash -# Based on https://github.com/hydrabolt/discord.js-site/blob/master/deploy/deploy.sh - -set -e - -if [ "$TRAVIS_BRANCH" != "master" -o -n "$TRAVIS_TAG" -o "$TRAVIS_PULL_REQUEST" != "false" ]; then - echo -e "Not building for a non master branch push - building without deploying." - npm run docs - exit 0 -fi - -echo -e "Building for a master branch push - building and deploying." - -REPO=$(git config remote.origin.url) -SHA=$(git rev-parse --verify HEAD) - -TARGET_BRANCH="gh-pages" -git clone $REPO dist -b $TARGET_BRANCH - -npm run docs - -rsync -vau docs/ dist/ - -cd dist -git add --all . -git config user.name "Travis CI" -git config user.email "${COMMIT_EMAIL}" -git commit -m "Docs build: ${SHA}" || true -git push "https://${GH_TOKEN}@${GH_REF}" $TARGET_BRANCH diff --git a/node_modules/snekfetch/scripts/travis-test.sh b/node_modules/snekfetch/scripts/travis-test.sh deleted file mode 100644 index aa4e37d..0000000 --- a/node_modules/snekfetch/scripts/travis-test.sh +++ /dev/null @@ -1,14 +0,0 @@ -set -e - -npm run lint - -npm run test - -if [ "$TRAVIS_BRANCH" != "master" -o -n "$TRAVIS_TAG" -o "$TRAVIS_PULL_REQUEST" != "false" ]; then - echo -e "Not sending coverage for a non master branch push - covering without sending." - exit 0 -fi - -echo -e "Generating Coverage for a master branch push - covering and sending." - -npm run test:coveralls -- cgit v1.2.3