Skip to content

Commit

Permalink
Convert new exporter into standalone tool
Browse files Browse the repository at this point in the history
  • Loading branch information
JAremko committed Aug 2, 2017
1 parent c35b5b3 commit 2ef2303
Show file tree
Hide file tree
Showing 13 changed files with 862 additions and 530 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
auto-save-list/
elpa/
export/
!/core/tools/export/
ac-comphist.dat
eproject.lst
.smex-items
Expand Down
11 changes: 11 additions & 0 deletions .travis-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ if [ ! -z "$FORMATTING" ]; then
echo_headline "Testing changed ORG files with spacefmt"
cp ~/.emacs.d/core/templates/.spacemacs.template ~/
mv ~/.spacemacs.template ~/.spacemacs
changed_f_as_args=()
while read p
do
if [ -f "$p" ]; then
if [ ${p: -4} == ".org" ]; then
changed_f_as_args+=("${p}")
echo "Checking $p file"
./core/tools/spacefmt/spacefmt -f "$p"
if [ $? -ne 0 ]; then
Expand All @@ -73,6 +75,15 @@ if [ ! -z "$FORMATTING" ]; then
fi
echo "All changed files comply with spacefmt"

if [ ${#changed_f_as_args[@]} -ne 0 ]; then
echo_headline "Testing with exporter"
emacs --batch -l ./core/tools/export/run.el test $(printf "%s " "${changed_f_as_args[@]}")
if [ $? -ne 0 ]; then
echo "Documentation needs some fixing ;)"
exit 1
fi
fi

echo_headline "Testing for trailing and all sorts of broken white spaces"
git reset -q "${first_commit}"
git add -N .
Expand Down
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,17 @@ before_install:
- evm install $EVM_EMACS --use --skip
env:
matrix:
- FORMATTING=doc EVM_EMACS=emacs-25.1-travis
- FORMATTING=doc EVM_EMACS=emacs-25.2-travis
- TESTS=core EVM_EMACS=emacs-24.4-travis
- TESTS=core EVM_EMACS=emacs-24.5-travis
- TESTS=core EVM_EMACS=emacs-25.1-travis
- TESTS=core EVM_EMACS=emacs-25.2-travis
- TESTS=core EVM_EMACS=emacs-git-snapshot-travis
- TESTS=doc EVM_EMACS=emacs-24.4-travis
- TESTS=doc EVM_EMACS=emacs-24.5-travis
- TESTS=doc EVM_EMACS=emacs-25.1-travis
- TESTS=doc EVM_EMACS=emacs-25.2-travis
- TESTS=doc EVM_EMACS=emacs-git-snapshot-travis
- TESTS=doc-edn EVM_EMACS=emacs-25.1-travis
- PUBLISH=spacemacs.org EVM_EMACS=emacs-25.1-travis
- PUBLISH=develop.spacemacs.org EVM_EMACS=emacs-25.1-travis
- PUBLISH=spacemacs.org EVM_EMACS=emacs-25.2-travis
- PUBLISH=develop.spacemacs.org EVM_EMACS=emacs-25.2-travis
global:
- secure: "M8NF1Uw7VGkLdNmWiUF4T+VOJXwN8KCKVQb45/BWVpGm88Rcfom/9bxRTUme8VYuzIavph32QF+P9KyhX8aj2p2FMItNnxiEySzap5UrLrNiwB6ZxbQglMJj0yMQKASynNBai9KKI7mYlsM5jRpFJ9OSgj7Ko00RIFpO3EpJ+kE="
- BOT_NAME=emacspace
Expand All @@ -33,7 +32,6 @@ matrix:
- env: TESTS=doc EVM_EMACS=emacs-24.4-travis
- env: TESTS=doc EVM_EMACS=emacs-24.5-travis
- env: TESTS=doc EVM_EMACS=emacs-git-snapshot-travis
- env: TESTS=doc-edn EVM_EMACS=emacs-25.1-travis
- env: PUBLISH=spacemacs.org EVM_EMACS=emacs-25.1-travis
- env: PUBLISH=develop.spacemacs.org EVM_EMACS=emacs-25.1-travis
- env: PUBLISH=spacemacs.org EVM_EMACS=emacs-25.2-travis
- env: PUBLISH=develop.spacemacs.org EVM_EMACS=emacs-25.2-travis
script: "./.travis-build.sh"
28 changes: 14 additions & 14 deletions COMMUNITY.org
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
#+TITLE: Spacemacs Community

* Spacemacs Community :TOC_4_gh:noexport:
- [[#philosophy][Philosophy]]
- [[#for-contributors][For Contributors]]
- [[#for-users][For Users]]
- [[#moderation][Moderation]]
- [[#guidelines][Guidelines]]
- [[#people][People]]
- [[#issues][Issues]]
- [[#pull-requests-and-commmits][Pull requests and Commmits]]
- [[#messages][Messages]]
- [[#interpretation][Interpretation]]
- [[#collaborators-privacy][Collaborators privacy]]
- [[#maintainer][Maintainer]]
- [[#log][Log]]
- [[#philosophy][Philosophy]]
- [[#for-contributors][For Contributors]]
- [[#for-users][For Users]]
- [[#moderation][Moderation]]
- [[#guidelines][Guidelines]]
- [[#people][People]]
- [[#issues][Issues]]
- [[#pull-requests-and-commmits][Pull requests and Commmits]]
- [[#messages][Messages]]
- [[#interpretation][Interpretation]]
- [[#collaborators-privacy][Collaborators privacy]]
- [[#maintainer][Maintainer]]
- [[#log][Log]]

* Philosophy
** For Contributors
Expand All @@ -23,7 +23,7 @@
- Be good in what you bring to the project be it code, documentation, typo
fixes, art, humor, ideas, project management, web design, assurance quality,
mentorship, you name it! We like to award achievements to people making a
difference in a wide variety of domains and occasions, [[file:./doc/DOCUMENTATION.org#specials][see it for yourself]].
difference in a wide variety of domains and occasions, [[https://github.com/syl20bnr/spacemacs/blob/develop/doc/DOCUMENTATION.org#special-titles][see it for yourself]].
Why not you? Make it happen, make history!
- Think you are not good enough? Find support and mentors by chatting on Gitter
with fellow Spacemacs users or just open an issue on GitHub, you will find
Expand Down
Loading

0 comments on commit 2ef2303

Please sign in to comment.