Skip to content
This repository has been archived by the owner on Jun 18, 2020. It is now read-only.

Commit

Permalink
Enable Travis (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandrokeil committed Nov 15, 2017
1 parent 7dde401 commit 1ecd613
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
sudo: required

services:
- docker

env:
- DOCKER_COMPOSE_VERSION=1.16.1
- DEPENDENCIES="--prefer-lowest --prefer-stable"
- ARANGODB_VERSION=3.2

before_install:
- docker info
- ./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

before_script:
- wget https://www.arangodb.com/repositories/travisCI/setup_arangodb_${ARANGODB_VERSION}.sh
- chmod 777 setup_arangodb_${ARANGODB_VERSION}.sh
- ./setup_arangodb_${ARANGODB_VERSION}.sh

jobs:
include:
- stage: build extension
script:
- docker-compose build arangodb-builder
- docker-compose run --rm arangodb-builder
- docker-compose build php
- stage: test extension
script:
- docker run --rm -it --volume $(pwd):/app prooph/composer:7.1 update --prefer-dist $DEPENDENCIES
- docker-compose run --rm php vendor/bin/phpunit

addons:
hosts:
- arangodb

after_script:
- killall -s SIGTERM arangod_x86_64

0 comments on commit 1ecd613

Please sign in to comment.