Commit 94031e9df4b3083f87e88c0753e52414fe717211
1 parent
dcbbe71e
Exists in
master
and in
21 other branches
Moved to travis script to separate directory and use bash
Showing
3 changed files
with
11 additions
and
11 deletions
Show diff stats
.travis.yml
... | ... | @@ -6,7 +6,7 @@ services: |
6 | 6 | - mongodb |
7 | 7 | before_install: |
8 | 8 | - wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.2.deb && sudo dpkg -i elasticsearch-1.3.2.deb && sudo service elasticsearch restart |
9 | - - ./test/nobrainer.sh | |
9 | + - ./ci/nobrainer.sh | |
10 | 10 | script: bundle exec rake test |
11 | 11 | before_script: |
12 | 12 | - psql -c 'create database searchkick_test;' -U postgres | ... | ... |
... | ... | @@ -0,0 +1,10 @@ |
1 | +#!/usr/bin/env bash | |
2 | + | |
3 | +if [ -n "$NOBRAINER" ]; then | |
4 | + source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list | |
5 | + wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add - | |
6 | + sudo apt-get update -q | |
7 | + sudo apt-get install rethinkdb | |
8 | + sudo cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf | |
9 | + sudo service rethinkdb restart | |
10 | +fi | ... | ... |
test/nobrainer.sh
... | ... | @@ -1,10 +0,0 @@ |
1 | -#!/usr/bin/env sh | |
2 | - | |
3 | -if [ -n "$NOBRAINER" ]; then | |
4 | - source /etc/lsb-release && echo "deb http://download.rethinkdb.com/apt $DISTRIB_CODENAME main" | sudo tee /etc/apt/sources.list.d/rethinkdb.list | |
5 | - wget -qO- http://download.rethinkdb.com/apt/pubkey.gpg | sudo apt-key add - | |
6 | - sudo apt-get update -q | |
7 | - sudo apt-get install rethinkdb | |
8 | - sudo cp /etc/rethinkdb/default.conf.sample /etc/rethinkdb/instances.d/instance1.conf | |
9 | - sudo service rethinkdb restart | |
10 | -fi |