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 8c6e9f0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
sudo: required
language: php
php:
- 7.1

services:
- docker

jobs:
include:
- stage: build extension
env:
- DOCKER_COMPOSE_VERSION=1.16.1
script:
- 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
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker-compose build arangodb-builder
- docker-compose run --rm arangodb-builder
- docker-compose build php
- docker-compose push arangodb-builder php
- stage: test extension
env:
- DEPENDENCIES="--prefer-lowest --prefer-stable"
script:
- docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
- docker-compose pull
- docker images
- docker run --rm -it --volume $(pwd):/app prooph/composer:7.1 update --prefer-dist $DEPENDENCIES
- docker-compose up -d --no-recreate arangodb
- docker-compose run --rm php vendor/bin/phpunit
- docker-compose down -v
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ services:

# To test run: docker-compose run --rm php
php:
image: arangodb-php
depends_on:
- arangodb-builder
build:
Expand Down

0 comments on commit 8c6e9f0

Please sign in to comment.