Skip to content

Commit

Permalink
Setting up travis-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Sep 20, 2014
1 parent 9ad3f80 commit 52ec53f
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
language: emacs-lisp
before_install:
- if [ "$EMACS" = 'emacs-snapshot' ]; then
sudo add-apt-repository -y ppa:cassou/emacs &&
sudo apt-get update -qq &&
sudo apt-get install -qq
emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot;
fi
- if [ "$EMACS" = 'emacs24' ]; then
sudo add-apt-repository -y ppa:cassou/emacs &&
sudo apt-get update -qq &&
sudo apt-get install -qq
emacs24 emacs24-el emacs24-common-non-dfsg;
fi
- sudo apt-get install -qq patch
- sudo add-apt-repository -y ppa:ondrej/php5
- sudo apt-get update -qq
- sudo apt-get install -qq php5
- wget https://github.com/QafooLabs/php-refactoring-browser/releases/download/v0.0.4/refactor.phar
- chmod +x refactor.phar
- curl -fsSkL https://raw.github.com/cask/cask/master/go | python
- export PATH="/home/travis/build/keelerm84/php-refactor-mode.el/:/home/travis/.cask/bin:$PATH"
- cask
env:
- EMACS=emacs24 TAGS=""
script:
./run-travis-ci.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# php-refactor-mode
# php-refactor-mode [![Build Status](https://secure.travis-ci.org/keelerm84/php-refactor-mode.el.png)](http://travis-ci.org/keelerm84/php-refactor-mode.el)

This is a minor mode which provides convenient access to the refactoring
methods provided by
Expand Down
Empty file.
2 changes: 2 additions & 0 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh -e
cask exec ecukes "$@"
13 changes: 13 additions & 0 deletions run-travis-ci.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh -e

cd "$(dirname "$0")"

ECUKES_EMACS=${EMACS:-$(which emacs)}
export ECUKES_EMACS

echo "*** Emacs version ***"
echo "ECUKES_EMACS = $ECUKES_EMACS"
"$ECUKES_EMACS" --version
echo

exec ./run-tests.sh $TAGS

0 comments on commit 52ec53f

Please sign in to comment.