mirror of
https://github.com/musix-org/musix-oss
synced 2025-06-17 04:26:00 +00:00
updated all commands and removed some weird files
This commit is contained in:
29
node_modules/snekfetch/scripts/travis-deploy.sh
generated
vendored
Normal file
29
node_modules/snekfetch/scripts/travis-deploy.sh
generated
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
#!/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
|
14
node_modules/snekfetch/scripts/travis-test.sh
generated
vendored
Normal file
14
node_modules/snekfetch/scripts/travis-test.sh
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
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
|
Reference in New Issue
Block a user