-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from pouchdb-community/upgrade-selenium
Use the latest selenium and update to pouchdb 7.0.0
- Loading branch information
Showing
5 changed files
with
62 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
COUCH_PORT=5984 | ||
if [ "$SERVER" = "couchdb-master" ]; then | ||
# Install CouchDB 2.X (clustered) | ||
docker run -d -p 5984:5984 apache/couchdb:latest --with-haproxy --with-admin-party-please -n 1 | ||
else | ||
# Install CouchDB 1.X | ||
docker run -d -p 5984:5984 apache/couchdb:1 | ||
fi | ||
|
||
# wait for couchdb to start, add cors | ||
npm install add-cors-to-couchdb | ||
while [ '200' != $(curl -s -o /dev/null -w %{http_code} http://127.0.0.1:${COUCH_PORT}) ]; do | ||
echo waiting for couch to load... ; | ||
sleep 1; | ||
done | ||
./node_modules/.bin/add-cors-to-couchdb http://127.0.0.1:${COUCH_PORT} |
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