[TravisCI] Select only .org files for autofix
This commit is contained in:
parent
901c01b0de
commit
931e9597af
|
@ -30,13 +30,11 @@ else
|
|||
exit 0
|
||||
fi
|
||||
|
||||
fold_start "CONFIGURING_GIT_USER"
|
||||
git config --global user.name "${BOT_NAME}"
|
||||
git config --global user.email "${BOT_EMAIL}"
|
||||
git config --global push.default simple
|
||||
git config --global hub.protocol https
|
||||
export GITHUB_TOKEN=$BOT_TK
|
||||
fold_end "CONFIGURING_GIT_USER"
|
||||
|
||||
fold_start "CLONING_TARGET_REPOSITORY"
|
||||
target_URL="https://github.com/syl20bnr/${PUBLISH}.git"
|
||||
|
@ -70,10 +68,6 @@ if [ $? -ne 0 ]; then
|
|||
echo "hub fork failed"
|
||||
exit 2
|
||||
fi
|
||||
mkdir -p ~/.ssh
|
||||
printf "Host github.com\n" > ~/.ssh/config
|
||||
printf " StrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
printf " UserKnownHostsFile=/dev/null\n" >> ~/.ssh/config
|
||||
fork_url="https://${BOT_NAME}:${BOT_TK}"
|
||||
fork_url+="@github.com/${BOT_NAME}/${PUBLISH}.git"
|
||||
git remote set-url "${BOT_NAME}" "${fork_url}"
|
||||
|
|
|
@ -28,13 +28,11 @@ else
|
|||
exit 0
|
||||
fi
|
||||
|
||||
fold_start "CONFIGURING_GIT_USER"
|
||||
git config --global user.name "${BOT_NAME}"
|
||||
git config --global user.email "${BOT_EMAIL}"
|
||||
git config --global push.default simple
|
||||
git config --global hub.protocol https
|
||||
export GITHUB_TOKEN=$BOT_TK
|
||||
fold_end "CONFIGURING_GIT_USER"
|
||||
|
||||
fold_start "CLONING_TARGET_REPOSITORY"
|
||||
target_URL="https://github.com/syl20bnr/${PUBLISH}.git"
|
||||
|
@ -46,8 +44,14 @@ fi
|
|||
fold_end "CLONING_TARGET_REPOSITORY"
|
||||
|
||||
fold_start "SELECTING_CHANGED_FILES"
|
||||
rsync -avh ~/.emacs.d/ "/tmp/${PUBLISH}"
|
||||
git add -u
|
||||
rsync -rv \
|
||||
--include '*/' \
|
||||
--include='*.org' \
|
||||
--exclude='*' \
|
||||
--prune-empty-dirs \
|
||||
~/.emacs.d/ \
|
||||
"/tmp/${PUBLISH}"
|
||||
git add -all
|
||||
git diff --cached --exit-code
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "Nothing to commit - exiting."
|
||||
|
@ -68,10 +72,6 @@ if [ $? -ne 0 ]; then
|
|||
echo "hub fork failed"
|
||||
exit 2
|
||||
fi
|
||||
mkdir -p ~/.ssh
|
||||
printf "Host github.com\n" > ~/.ssh/config
|
||||
printf " StrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
printf " UserKnownHostsFile=/dev/null\n" >> ~/.ssh/config
|
||||
fork_url="https://${BOT_NAME}:${BOT_TK}"
|
||||
fork_url+="@github.com/${BOT_NAME}/${PUBLISH}.git"
|
||||
git remote set-url "${BOT_NAME}" "${fork_url}"
|
||||
|
|
|
@ -19,6 +19,11 @@ fold_end() {
|
|||
echo -e "\ntravis_fold:end:$1\r"
|
||||
}
|
||||
|
||||
mkdir -p ~/.ssh
|
||||
printf "Host github.com\n" > ~/.ssh/config
|
||||
printf " StrictHostKeyChecking no\n" >> ~/.ssh/config
|
||||
printf " UserKnownHostsFile=/dev/null\n" >> ~/.ssh/config
|
||||
|
||||
fold_start "FORMATTING_DOCUMENTATION"
|
||||
docker run --rm -v "${TRAVIS_BUILD_DIR}":/tmp/docs/ \
|
||||
jare/spacetools docfmt /tmp/docs/
|
||||
|
@ -45,7 +50,7 @@ fi
|
|||
fold_end "INSTALLING_${EVM_EMACS}"
|
||||
|
||||
fold_start "INSTALLING_DEPENDENCIES"
|
||||
emacs -batch -l init.el > /dev/null
|
||||
emacs -batch -l init.el
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Dependencies installation failed."
|
||||
exit 2
|
||||
|
|
Loading…
Reference in a new issue