diff --git a/.travis.yml b/.travis.yml index 64218a9..cc8505d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ services: - mongodb before_install: - wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.deb && sudo dpkg -i elasticsearch-1.3.2.deb && sudo service elasticsearch restart - - script ./test/nobrainer.sh + - ./test/nobrainer.sh script: bundle exec rake test before_script: - psql -c 'create database searchkick_test;' -U postgres diff --git a/test/nobrainer.sh b/test/nobrainer.sh index df54491..f85dd18 100755 --- a/test/nobrainer.sh +++ b/test/nobrainer.sh @@ -1,6 +1,6 @@ #!/usr/bin/env sh -if [ ! -z "$NOBRAINER" ]; then +if [ -n "$NOBRAINER" ]; then source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add - sudo apt-get update -q -- libgit2 0.21.0