Skip to content

Commit 52ec53f

Browse files
committed
Setting up travis-ci
1 parent 9ad3f80 commit 52ec53f

File tree

5 files changed

+43
-1
lines changed

5 files changed

+43
-1
lines changed

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
language: emacs-lisp
2+
before_install:
3+
- if [ "$EMACS" = 'emacs-snapshot' ]; then
4+
sudo add-apt-repository -y ppa:cassou/emacs &&
5+
sudo apt-get update -qq &&
6+
sudo apt-get install -qq
7+
emacs-snapshot-el emacs-snapshot-gtk emacs-snapshot;
8+
fi
9+
- if [ "$EMACS" = 'emacs24' ]; then
10+
sudo add-apt-repository -y ppa:cassou/emacs &&
11+
sudo apt-get update -qq &&
12+
sudo apt-get install -qq
13+
emacs24 emacs24-el emacs24-common-non-dfsg;
14+
fi
15+
- sudo apt-get install -qq patch
16+
- sudo add-apt-repository -y ppa:ondrej/php5
17+
- sudo apt-get update -qq
18+
- sudo apt-get install -qq php5
19+
- wget https://github.com/QafooLabs/php-refactoring-browser/releases/download/v0.0.4/refactor.phar
20+
- chmod +x refactor.phar
21+
- curl -fsSkL https://raw.github.com/cask/cask/master/go | python
22+
- export PATH="/home/travis/build/keelerm84/php-refactor-mode.el/:/home/travis/.cask/bin:$PATH"
23+
- cask
24+
env:
25+
- EMACS=emacs24 TAGS=""
26+
script:
27+
./run-travis-ci.sh

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# php-refactor-mode
1+
# 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)
22

33
This is a minor mode which provides convenient access to the refactoring
44
methods provided by

features/step-definitions/.gitkeep

Whitespace-only changes.

run-tests.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh -e
2+
cask exec ecukes "$@"

run-travis-ci.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/bin/sh -e
2+
3+
cd "$(dirname "$0")"
4+
5+
ECUKES_EMACS=${EMACS:-$(which emacs)}
6+
export ECUKES_EMACS
7+
8+
echo "*** Emacs version ***"
9+
echo "ECUKES_EMACS = $ECUKES_EMACS"
10+
"$ECUKES_EMACS" --version
11+
echo
12+
13+
exec ./run-tests.sh $TAGS

0 commit comments

Comments
 (0)