Skip to content

Commit

Permalink
Travis build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Ostico committed Aug 10, 2015
1 parent ac4bac3 commit ef6901f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
sudo: false

language: php

php:
- 5.4
- 5.5
- hhvm

cache:
directories:
- ./ci/environment/orientdb-community-$ORIENTDB_VERSION

before_script:
- ./ci/start-ci.sh $ORIENTDB_VERSION
- php -r "readfile('https://getcomposer.org/installer');" | php
Expand Down Expand Up @@ -32,6 +38,7 @@ env:

matrix:
allow_failures:
- ORIENTDB_VERSION=2.0.10
- ORIENTDB_VERSION=2.0.9
- ORIENTDB_VERSION=2.0.8
- ORIENTDB_VERSION=1.7.10
Expand Down
2 changes: 2 additions & 0 deletions ci/start-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ if [ ! -d "$ODB_DIR" ]; then

if [[ "${ODB_VERSION}" == "1.7.10" ]]; then
cp ${PARENT_DIR}/ci/orientdb-server-config_1.7.10.xml "${ODB_DIR}/config/orientdb-server-config.xml"
elif [[ "${ODB_VERSION}" == *"2.1"* ]]; then
cp ${PARENT_DIR}/ci/orientdb-server-config_2.0.xml "${ODB_DIR}/config/orientdb-server-config.xml"
elif [[ "${ODB_VERSION}" != *"2.0"* ]]; then
cp ${PARENT_DIR}/ci/orientdb-server-config.xml "${ODB_DIR}/config/orientdb-server-config.xml"
else
Expand Down

0 comments on commit ef6901f

Please sign in to comment.