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: branches:
only: only:
- master - master
- develop - develop
before_install: before_install:
sudo add-apt-repository -y ppa:ubuntu-elisp/ppa && - curl -fsSkL https://gist.github.com/rejeep/ebcd57c3af83b049833b/raw > x.sh && source ./x.sh
sudo apt-get -qq update && - evm install $EVM_EMACS --use --skip
sudo apt-get -qq -f install &&
sudo apt-get -qqy install emacs-snapshot; 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: script:
./travis/run_build.sh - ./travis/run_build.sh

View File

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