aboutsummaryrefslogtreecommitdiff
path: root/.ci/api-python.sh
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-08-07 09:07:26 -0300
committerJohn Szakmeister <john@szakmeister.net>2014-08-08 06:06:10 -0400
commit6483a198e4bee1e80683ba12e061616c3e6c4090 (patch)
tree385520662b80bb56e4debeff81dfad2d3e7c8d58 /.ci/api-python.sh
parentcb809069a83223d4faf5cd627b8292273dece2f8 (diff)
downloadrneovim-6483a198e4bee1e80683ba12e061616c3e6c4090.tar.gz
rneovim-6483a198e4bee1e80683ba12e061616c3e6c4090.tar.bz2
rneovim-6483a198e4bee1e80683ba12e061616c3e6c4090.zip
Travis CI: Refactor travis script
To simplify modification/inclusion of continuous integration targets, this removes travis.sh which contains a big if statement in favor of multiple scripts under the new '.ci' directory.
Diffstat (limited to '.ci/api-python.sh')
-rw-r--r--.ci/api-python.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/.ci/api-python.sh b/.ci/api-python.sh
new file mode 100644
index 0000000000..093f6b7166
--- /dev/null
+++ b/.ci/api-python.sh
@@ -0,0 +1,19 @@
+. "$CI_SCRIPTS/common.sh"
+
+set_environment /opt/neovim-deps
+
+sudo apt-get install expect valgrind
+
+$MAKE_CMD
+
+git clone --depth=1 -b master git://github.com/neovim/python-client
+cd python-client
+sudo pip install .
+sudo pip install nose
+test_cmd="nosetests --verbosity=2"
+nvim_cmd="valgrind -q --track-origins=yes --leak-check=yes --suppressions=$suppressions --log-file=$tmpdir/valgrind-%p.log ../build/bin/nvim -u NONE"
+if ! ../scripts/run-api-tests.exp "$test_cmd" "$nvim_cmd"; then
+ valgrind_check "$tmpdir"
+ exit 1
+fi
+valgrind_check "$tmpdir"