Improved travis Build relying on container and EVM

This commit is contained in:
AdrieanKhisbe 2015-12-11 06:40:15 +01:00 committed by syl20bnr
parent 26a4b9c55e
commit ed8d1ffef0
2 changed files with 23 additions and 8 deletions

View File

@ -1,13 +1,25 @@
language: generic
sudo: false
branches:
only:
- master
- develop
before_install:
sudo add-apt-repository -y ppa:ubuntu-elisp/ppa &&
sudo apt-get -qq update &&
sudo apt-get -qq -f install &&
sudo apt-get -qqy install emacs-snapshot;
- curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
- evm install $EVM_EMACS --use --skip
env:
- EVM_EMACS=emacs-24.4-travis
- EVM_EMACS=emacs-24.5-travis
- EVM_EMACS=emacs-git-snapshot-travis
matrix:
fast_finish: true
allow_failures:
env:
- EVM_EMACS=emacs-git-snapshot-travis
script:
./travis/run_build.sh
- ./travis/run_build.sh

View File

@ -19,17 +19,20 @@ if [ $USER != "travis" ]; then
exit 1
fi
ln -s `pwd` ~/.emacs.d
echo "Pwd $(pwd)"
rm -rf ~/.emacs.d
ln -sf `pwd` ~/.emacs.d
for test in "${tests[@]}"; do
rm -rf ~/.emacs.d/elpa
rm -rf ~/.emacs.d/.cache
rm ~/.spacemacs
rm -f ~/.spacemacs
testdir=~/.emacs.d/tests/$test
echo "Running '$test' in '$testdir' folder"
if [ -f $testdir/dotspacemacs.el ]; then
cp $testdir/dotspacemacs.el ~/.spacemacs
fi
cd $testdir
cd $testdir && echo "Now in $(pwd)"
make test || exit 2
done