Created
June 28, 2016 14:16
-
-
Save mkorkmaz/254cd7c46a6fbcf79804158b4a6fb013 to your computer and use it in GitHub Desktop.
Testing your code with Elasticseach 2 on TravisCI
This file contains hidden or 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
language: php | |
sudo: false | |
jdk: | |
- oraclejdk8 | |
addons: | |
apt: | |
packages: | |
- oracle-java8-installer | |
php: | |
- 7.0 | |
- 5.6 | |
env: | |
global: | |
- WAIT_FOR_ES=1 | |
matrix: | |
- ES_VERSION=2.3.3 | |
install: | |
- mkdir /tmp/elasticsearch | |
- wget -O - https://download.elasticsearch.org/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/${ES_VERSION}/elasticsearch-${ES_VERSION}.tar.gz | tar xz --directory=/tmp/elasticsearch --strip-components=1 | |
- /tmp/elasticsearch/bin/elasticsearch --daemonize --path.data /tmp | |
before_script: | |
- composer install -n | |
- sleep 10 | |
- curl http://127.0.0.1:9200/ | |
script: | |
- vendor/bin/phpunit | |
after_script: | |
- if [ $TRAVIS_PHP_VERSION = '7.0' ]; then php vendor/bin/coveralls; fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment