This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/.circleci/shared

31 lines
758 B
Bash
Executable file

#!/usr/bin/env bash
## Shared script part for CircleCI
##
## Copyright (c) 2012-2014 Sylvain Benner
## Copyright (c) 2014-2018 Sylvain Benner & Contributors
##
## Author: Eugene Yaremenko
## URL: https://github.com/syl20bnr/spacemacs
##
## This file is not part of GNU Emacs.
##
## License: GPLv3
echo_headline () {
printf '=%.0s' {1..80}
printf "\n$1\n"
printf '=%.0s' {1..80}
echo
}
upstream_data_URL_root="https://api.github.com/repos/"
upstream_data_URL_root+="${CIRCLE_PROJECT_USERNAME}/"
upstream_data_URL_root+="${CIRCLE_PROJECT_REPONAME}"
pr_data_URL="${upstream_data_URL_root}/pulls/${CIRCLE_PR_NUMBER}"
upstream_data_URL="${upstream_data_URL_root}/branches/develop"
cleanup () {
rm -rf ~/.emacs.d/elpa ~/.emacs.d/.cache -f ~/.spacemacs
}