diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..4e9308d --- /dev/null +++ b/.travis.yml @@ -0,0 +1,28 @@ +sudo: required +language: php +php: + - 7.1 + +services: + - docker + +jobs: + include: + - stage: build and test extension + env: + - DOCKER_COMPOSE_VERSION=1.16.1 + - DEPENDENCIES="--prefer-lowest --prefer-stable" + script: + - docker info + - docker-compose up -d --no-recreate arangodb + - ./get_fuerte + - sudo rm /usr/local/bin/docker-compose + - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose + - chmod +x docker-compose + - sudo mv docker-compose /usr/local/bin + - docker-compose build arangodb-builder + - docker-compose run --rm arangodb-builder + - docker-compose build php + - docker run --rm -it --volume $(pwd):/app prooph/composer:7.1 update --prefer-dist $DEPENDENCIES + - docker-compose run --rm php vendor/bin/phpunit + - docker-compose down -v diff --git a/docker-compose.yml b/docker-compose.yml index 562d2e3..785b529 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -12,6 +12,7 @@ services: # To test run: docker-compose run --rm php php: + image: arangodb-php depends_on: - arangodb-builder build: