forked from elastic/elasticsearch-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run all of the browser tests at once, since parallel builds no longer…
… benefit us at codeship and this will probably make things run even faster
- Loading branch information
Spencer Alger
committed
Jan 18, 2014
1 parent
9c1c100
commit bacd515
Showing
11 changed files
with
81 additions
and
39 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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
##### | ||
# Start or stop a group for travis | ||
##### | ||
|
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,46 @@ | ||
#!/usr/bin/env bash | ||
|
||
HERE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
source $HERE/_utils.sh | ||
source $HOME/.nvm/nvm.sh | ||
|
||
case $1 in | ||
setup) | ||
group "start: installing nvm 0.10" | ||
nvm install 0.10 | ||
group "end: installing nvm 0.10" | ||
|
||
group "start: installing nvm 0.8" | ||
nvm install 0.8 | ||
group "end: installing nvm 0.8" | ||
|
||
manage_es install master | ||
manage_es install 0.90 | ||
|
||
npm install | ||
;; | ||
run) | ||
# test in node 0.8 | ||
group "start: test node 0.8" | ||
nvm use 0.8 | ||
echo "rebuilding npm deps" | ||
npm rebuild &> /dev/null | ||
call ES_BRANCH=master ./scripts/ci.sh | ||
call ES_BRANCH=0.90 ./scripts/ci.sh | ||
group "end: test node 0.8" | ||
|
||
# test in node 0.10 | ||
group "start: test node 0.10" | ||
nvm use 0.10 | ||
echo "rebuilding npm deps" | ||
npm rebuild &> /dev/null | ||
call ES_BRANCH=master COVERAGE=1 ./scripts/ci.sh | ||
call ES_BRANCH=0.90 ./scripts/ci.sh | ||
group "end: test node 0.10" | ||
|
||
# browser tests (node version irrelevant) | ||
group "start: test browsers" | ||
call NODE_UNIT=0 NODE_INTEGRATION=0 BROWSER_UNIT=1 ./scripts/ci.sh | ||
group "end: test browsers" | ||
;; | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -z "$2" ]; then | ||
echo "Usage: | ||
From the root of the elasticsearch-js project call: | ||
|
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// I know this is horrible | ||
// I just don't want the keys searchable on github | ||
module.exports = JSON.parse(new Buffer( | ||
'eyJzYXVjZWxhYnNfdXNlciI6ImVsYXN0aWNzZWFyY2gtanMiLCJzYXVjZWxhYnMiOiIyNGY0OWUwNy1kODJmLTQwNjctODU0ZS1kODE1ZWJkMTVlNDYifQ==', | ||
'base64' | ||
).toString('utf8')); |