Fix website deploy
parent
523de8aa1b
commit
d70dcbd7b1
|
@ -0,0 +1,2 @@
|
|||
python 3.9.0
|
||||
ruby 2.7.5
|
27
.travis.yml
27
.travis.yml
|
@ -1,27 +0,0 @@
|
|||
language: ruby
|
||||
|
||||
install:
|
||||
- gem install mdl awesome_bot
|
||||
|
||||
before_script:
|
||||
# Get the current branch name
|
||||
- export CURR_BRANCH=$(if [ "$TRAVIS_PULL_REQUEST" == "false" ]; then echo $TRAVIS_BRANCH; else echo $TRAVIS_PULL_REQUEST_BRANCH; fi)
|
||||
|
||||
script:
|
||||
- mdl README.md
|
||||
- awesome_bot README.md --allow-redirect
|
||||
|
||||
# See if contributor was added
|
||||
- if git diff-tree --no-commit-id --name-only -r $(git rev-parse HEAD) | grep CONTRIBUTORS.md; then
|
||||
exit 0;
|
||||
else
|
||||
echo "Checking if contributors are up to date for branch $CURR_BRANCH"
|
||||
|
||||
if [[ "$CURR_BRANCH" == feature/* ]]; then
|
||||
echo "Skipping CONTRIBUTORS.md check because build branch is a feature branch";
|
||||
exit 0;
|
||||
else
|
||||
echo "⚠️ Contributor did not add themselve to the CONTRIBUTORS.md list";
|
||||
exit 1;
|
||||
fi
|
||||
fi
|
|
@ -22,4 +22,4 @@ DEPENDENCIES
|
|||
mdl
|
||||
|
||||
BUNDLED WITH
|
||||
1.16.3
|
||||
2.3.6
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
.DEFAULT_GOAL := build
|
||||
|
||||
dependencies:
|
||||
pip install pip --upgrade && pip install -r requirements.txt
|
||||
gem install bundler && bundle
|
||||
|
||||
build:
|
||||
chmod +x ./scripts/build.sh && ./scripts/build.sh
|
|
@ -9,9 +9,6 @@ set -o pipefail # Return exit status of the last command in the pipe that failed
|
|||
# Switch to the root of the repository.
|
||||
cd "$(dirname "$(dirname "${BASH_SOURCE[0]}")")"
|
||||
|
||||
# Install requirements
|
||||
pip install -r requirements.txt
|
||||
|
||||
if [ ! -d docs ]; then
|
||||
mkdir docs
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue