add caching to travis builds

This commit is contained in:
spalger
2015-08-04 03:54:20 -07:00
parent 66c95a0eb9
commit b5a9aefad1
4 changed files with 11 additions and 3 deletions

2
.gitignore vendored
View File

@ -6,7 +6,7 @@ scripts/scratch*
test/integration/yaml_suite/log
.aws-config.json
.idea
.esvm
esvm
.es-snapshot-repos
## generated files

View File

@ -6,7 +6,7 @@ scripts/scratch*
test/integration/yaml_suite/log
.aws-config.json
.idea
.esvm
esvm
## generated files
test/integration/yaml_suite/yaml_tests*.json

View File

@ -2,6 +2,13 @@ language: node_js
node_js:
- "node"
- "iojs"
cache:
directories:
- src/_elasticsearch_/
- esvm
- node_modules
before_cache:
- rm -rf esvm/*/logs esvm/data_dir
sudo: false
secure: "UFAGQ6m/VnEahbj9vttY9YoA5h5rEBE6K7AvEEbWnt+VKppV+w3hu3HZxgKr8C9PWhCzqlGvsLh+kCqykZhISU1fBCK/Ttp3nSpMvvF5tI2u51Rj1qZ/7NUGRU0qVI9KFt0rJeXMJwq3fivb1H6aojfPD1gsIte7NHNjUfd0iUg="
env:

View File

@ -10,10 +10,11 @@ var Version = require('../../scripts/Version');
var versionedOpts = [
{
version: '*',
directory: fromRoot('.esvm'),
directory: fromRoot('esvm'),
nodes: 1,
quiet: false,
config: {
'path.data': fromRoot('esvm/data_dir'),
'node.name': 'elasticsearch_js_test_runner',
'cluster.name': 'elasticsearch_js_test_runners',
'http.port': port,