Skip to content

Commit

Permalink
Add Ruby test suite to Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed Sep 15, 2015
1 parent 7038163 commit 73bcb1c
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@

language: java
sudo: false

before_install:
- pip install --user virtualenv
- export PATH=$PATH:$HOME/.local/bin

script:
- ./go clean build
- "export PY_FILES_CHANGED=`git diff --name-only $TRAVIS_COMMIT_RANGE | grep ^py/`"
- "if [[ $PY_FILES_CHANGED == py/* ]]; then ./go py_prep_for_install_release; ./go //py:phantomjs_test:run; else echo no python files changed skipping python test suite; fi"

- |
export PY_FILES_CHANGED=`git diff --name-only $TRAVIS_COMMIT_RANGE | grep ^py/`
if [[ $PY_FILES_CHANGED == py/* ]]; then
pip install --user virtualenv
export PATH=$PATH:$HOME/.local/bin
./go py_prep_for_install_release //py:phantomjs_test:run
else
echo 'no Python files changed - skipping Python test suite'
fi
- |
export RB_FILES_CHANGED=`git diff --name-only $TRAVIS_COMMIT_RANGE | grep ^rb/`
if [[ $RB_FILES_CHANGED == rb/* ]]; then
./go //rb:unit-test //rb:phantomjs-test
else
echo 'no Ruby files changed - skipping Ruby test suite'
fi

0 comments on commit 73bcb1c

Please sign in to comment.