Skip to content

Commit 73bcb1c

Browse files
committed
Add Ruby test suite to Travis
1 parent 7038163 commit 73bcb1c

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

.travis.yml

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
21
language: java
32
sudo: false
4-
5-
before_install:
6-
- pip install --user virtualenv
7-
- export PATH=$PATH:$HOME/.local/bin
8-
93
script:
104
- ./go clean build
11-
- "export PY_FILES_CHANGED=`git diff --name-only $TRAVIS_COMMIT_RANGE | grep ^py/`"
12-
- "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"
13-
5+
- |
6+
export PY_FILES_CHANGED=`git diff --name-only $TRAVIS_COMMIT_RANGE | grep ^py/`
7+
if [[ $PY_FILES_CHANGED == py/* ]]; then
8+
pip install --user virtualenv
9+
export PATH=$PATH:$HOME/.local/bin
10+
./go py_prep_for_install_release //py:phantomjs_test:run
11+
else
12+
echo 'no Python files changed - skipping Python test suite'
13+
fi
14+
- |
15+
export RB_FILES_CHANGED=`git diff --name-only $TRAVIS_COMMIT_RANGE | grep ^rb/`
16+
if [[ $RB_FILES_CHANGED == rb/* ]]; then
17+
./go //rb:unit-test //rb:phantomjs-test
18+
else
19+
echo 'no Ruby files changed - skipping Ruby test suite'
20+
fi

0 commit comments

Comments
 (0)