This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove all integration tests from travisci, add semaphoreci badge to …
…README (#397)
- Loading branch information
1 parent
9fa8ec7
commit dac78e0
Showing
6 changed files
with
95 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,81 +2,79 @@ | |
|
||
set -e | ||
|
||
if [[ $TRAVIS_EVENT_TYPE != 'cron' ]]; then | ||
case "$TESTDIR" in | ||
'adaptor/postgres/...') | ||
echo "Configuring postgresql" | ||
psql -c "ALTER SYSTEM SET max_replication_slots = 4" | ||
psql -c "ALTER SYSTEM SET wal_level = logical" | ||
sudo /etc/init.d/postgresql restart; sleep 1 | ||
;; | ||
'adaptor/elasticsearch/...') | ||
echo "Configuring elasticsearch" | ||
mkdir -p /tmp/elasticsearch/config | ||
cp -r config/elasticsearch/* /tmp/elasticsearch/config/ | ||
sudo sysctl -w vm.max_map_count=262144 | ||
docker run --rm --privileged=true -p 127.0.0.1:9205:9205 -v "/tmp/elasticsearch/config/v5:/usr/share/elasticsearch/config" -e ES_JAVA_OPTS='-Xms1g -Xmx1g' elasticsearch:5.1.2 elasticsearch >& /dev/null & | ||
docker run --rm --privileged=true -p 127.0.0.1:9202:9202 -v "/tmp/elasticsearch/config/v2:/usr/share/elasticsearch/config" -e ES_JAVA_OPTS='-Xms1g -Xmx1g' elasticsearch:2.4.4 elasticsearch >& /dev/null & | ||
docker run --rm --privileged=true -p 127.0.0.1:9201:9201 -v "/tmp/elasticsearch/config/v1:/usr/share/elasticsearch/config" -e ES_JAVA_OPTS='-Xms1g -Xmx1g' elasticsearch:1.7.6 elasticsearch >& /dev/null & | ||
sleep 15 | ||
;; | ||
'adaptor/rabbitmq/...') | ||
echo "Configuring rabbitmq" | ||
mkdir -p /tmp/rabbitmq | ||
cp -r config/rabbitmq/certs/* /tmp/rabbitmq/ | ||
case "$TESTDIR" in | ||
'adaptor/postgres/...') | ||
echo "Configuring postgresql" | ||
psql -c "ALTER SYSTEM SET max_replication_slots = 4" | ||
psql -c "ALTER SYSTEM SET wal_level = logical" | ||
sudo /etc/init.d/postgresql restart; sleep 1 | ||
;; | ||
'adaptor/elasticsearch/...') | ||
echo "Configuring elasticsearch" | ||
mkdir -p /tmp/elasticsearch/config | ||
cp -r config/elasticsearch/* /tmp/elasticsearch/config/ | ||
sudo sysctl -w vm.max_map_count=262144 | ||
docker run --rm --privileged=true -p 127.0.0.1:9205:9205 -v "/tmp/elasticsearch/config/v5:/usr/share/elasticsearch/config" -e ES_JAVA_OPTS='-Xms1g -Xmx1g' elasticsearch:5.1.2 elasticsearch >& /dev/null & | ||
docker run --rm --privileged=true -p 127.0.0.1:9202:9202 -v "/tmp/elasticsearch/config/v2:/usr/share/elasticsearch/config" -e ES_JAVA_OPTS='-Xms1g -Xmx1g' elasticsearch:2.4.4 elasticsearch >& /dev/null & | ||
docker run --rm --privileged=true -p 127.0.0.1:9201:9201 -v "/tmp/elasticsearch/config/v1:/usr/share/elasticsearch/config" -e ES_JAVA_OPTS='-Xms1g -Xmx1g' elasticsearch:1.7.6 elasticsearch >& /dev/null & | ||
sleep 15 | ||
;; | ||
'adaptor/rabbitmq/...') | ||
echo "Configuring rabbitmq" | ||
mkdir -p /tmp/rabbitmq | ||
cp -r config/rabbitmq/certs/* /tmp/rabbitmq/ | ||
|
||
mkdir -p /tmp/rabbitmq_bad_cert | ||
cp -r config/rethinkdb/certs/* /tmp/rabbitmq_bad_cert/ | ||
mkdir -p /tmp/rabbitmq_bad_cert | ||
cp -r config/rethinkdb/certs/* /tmp/rabbitmq_bad_cert/ | ||
|
||
sudo apt-get update -qq | ||
sudo apt-get install -y python-software-properties ssh | ||
# Install haproxy-1.5 | ||
sudo add-apt-repository -y ppa:vbernat/haproxy-1.5 | ||
sudo apt-get update -qq | ||
sudo apt-get install haproxy | ||
sudo service rabbitmq-server start | ||
sleep 10 | ||
sudo haproxy -f config/rabbitmq/haproxy.cfg -db & | ||
;; | ||
'adaptor/rethinkdb/...') | ||
echo "Configuring rethinkdb" | ||
mkdir -p /tmp/rethinkdb | ||
cp -r config/rethinkdb/certs/* /tmp/rethinkdb/ | ||
sudo apt-get update -qq | ||
sudo apt-get install -y python-software-properties ssh | ||
# Install haproxy-1.5 | ||
sudo add-apt-repository -y ppa:vbernat/haproxy-1.5 | ||
sudo apt-get update -qq | ||
sudo apt-get install haproxy | ||
sudo service rabbitmq-server start | ||
sleep 10 | ||
sudo haproxy -f config/rabbitmq/haproxy.cfg -db & | ||
;; | ||
'adaptor/rethinkdb/...') | ||
echo "Configuring rethinkdb" | ||
mkdir -p /tmp/rethinkdb | ||
cp -r config/rethinkdb/certs/* /tmp/rethinkdb/ | ||
|
||
mkdir -p /tmp/rethinkdb_ssl | ||
rethinkdb --config-file config/rethinkdb/configurations/ssl.conf >& /dev/null & | ||
mkdir -p /tmp/rethinkdb_ssl | ||
rethinkdb --config-file config/rethinkdb/configurations/ssl.conf >& /dev/null & | ||
|
||
mkdir -p /tmp/rethinkdb_auth | ||
rethinkdb --initial-password admin123 --config-file config/rethinkdb/configurations/auth.conf >& /dev/null & | ||
;; | ||
'adaptor/mongodb/...') | ||
echo "Configuring mongodb" | ||
mkdir -p /tmp/mongodb | ||
cp -r config/mongodb/certs/* /tmp/mongodb/ | ||
mongo-orchestration start -p 20000 -b 127.0.0.1 | ||
mkdir -p /tmp/rethinkdb_auth | ||
rethinkdb --initial-password admin123 --config-file config/rethinkdb/configurations/auth.conf >& /dev/null & | ||
;; | ||
'adaptor/mongodb/...') | ||
echo "Configuring mongodb" | ||
mkdir -p /tmp/mongodb | ||
cp -r config/mongodb/certs/* /tmp/mongodb/ | ||
mongo-orchestration start -p 20000 -b 127.0.0.1 | ||
|
||
# setup mongodb configurations | ||
# setup mongodb configurations | ||
|
||
# standard replica set w/ authentication enabled | ||
cat config/mongodb/configurations/rs_auth.json | curl -XPOST http://localhost:20000/v1/replica_sets -H "Content-Type: application/json" -d @- | ||
# standard replica set w/ authentication enabled | ||
cat config/mongodb/configurations/rs_auth.json | curl -XPOST http://localhost:20000/v1/replica_sets -H "Content-Type: application/json" -d @- | ||
|
||
# basic server | ||
cat config/mongodb/configurations/basic.json | curl -XPOST http://localhost:20000/v1/servers -H "Content-Type: application/json" -d @- | ||
# basic server | ||
cat config/mongodb/configurations/basic.json | curl -XPOST http://localhost:20000/v1/servers -H "Content-Type: application/json" -d @- | ||
|
||
# basic server used for restart tests | ||
cat config/mongodb/configurations/reader_restart.json | curl -XPOST http://localhost:20000/v1/servers -H "Content-Type: application/json" -d @- | ||
# basic server used for restart tests | ||
cat config/mongodb/configurations/reader_restart.json | curl -XPOST http://localhost:20000/v1/servers -H "Content-Type: application/json" -d @- | ||
|
||
# SSL server | ||
cat config/mongodb/configurations/ssl.json | curl -XPOST http://localhost:20000/v1/servers -H "Content-Type: application/json" -d @- | ||
# SSL server | ||
cat config/mongodb/configurations/ssl.json | curl -XPOST http://localhost:20000/v1/servers -H "Content-Type: application/json" -d @- | ||
|
||
# standard replica set | ||
cat config/mongodb/configurations/rs_basic.json | curl -XPOST http://localhost:20000/v1/replica_sets -H "Content-Type: application/json" -d @- | ||
# standard replica set | ||
cat config/mongodb/configurations/rs_basic.json | curl -XPOST http://localhost:20000/v1/replica_sets -H "Content-Type: application/json" -d @- | ||
|
||
# seed database with users and role | ||
mongo mongodb://transporter:[email protected]:10000,127.0.0.1:10001/admin?replicaSet=authRepl0 config/mongodb/scripts/setup_users_and_roles.js | ||
;; | ||
*) | ||
echo "no setup required for $TESTDIR" | ||
;; | ||
esac | ||
fi | ||
# seed database with users and role | ||
mongo mongodb://transporter:[email protected]:10000,127.0.0.1:10001/admin?replicaSet=authRepl0 config/mongodb/scripts/setup_users_and_roles.js | ||
;; | ||
*) | ||
echo "no setup required for $TESTDIR" | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters