c6ba7d9300
Should allow easier testing of layers, not just core
35 lines
866 B
Bash
Executable file
35 lines
866 B
Bash
Executable file
#!/usr/bin/env bash
|
|
## run_build.sh --- Travis CI File for Spacemacs
|
|
##
|
|
## Copyright (c) 2012-2014 Sylvain Benner
|
|
## Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
|
##
|
|
## Author: Sylvain Benner <sylvain.benner@gmail.com>
|
|
## URL: https://github.com/syl20bnr/spacemacs
|
|
##
|
|
## This file is not part of GNU Emacs.
|
|
##
|
|
## License: GPLv3
|
|
|
|
tests=("core" "spacemacs")
|
|
|
|
if [ $USER != "travis" ]; then
|
|
echo "This script is not designed to run locally."
|
|
echo "Instead, navigate to the appropriate test folder and run make there instead."
|
|
exit 1
|
|
fi
|
|
|
|
ln -s `pwd` ~/.emacs.d
|
|
|
|
for test in "${tests[@]}"; do
|
|
rm -rf ~/.emacs.d/elpa
|
|
rm -rf ~/.emacs.d/.cache
|
|
rm ~/.spacemacs
|
|
|
|
testdir=~/.emacs.d/tests/$test
|
|
if [ -f $testdir/dotspacemacs.el ]; then
|
|
cp $testdir/dotspacemacs.el ~/.spacemacs
|
|
fi
|
|
cd $testdir
|
|
make test || exit 2
|
|
done
|