Skip to content

Commit

Permalink
update codeception
Browse files Browse the repository at this point in the history
  • Loading branch information
alibo committed Sep 20, 2018
1 parent 2dd487b commit 9f712ce
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .docker/nginx/app.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
server {
listen 0.0.0.0:80;

root /app;

location / {
try_files $uri $uri/index.php;
}

location ~ \.php$ {
fastcgi_pass phpfpm:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
}
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
sudo: required

language: php

php:
- 7.2

services:
- docker

cache:
directories:
- $HOME/.composer/cache

before_install:
- phpenv config-rm xdebug.ini
- travis_retry composer self-update
- docker-compose -d -f docker-compose.testing.yaml up

before_script:
- composer install --no-interaction --no-suggest

script:
- vendor/bin/phpspec run
- vendor/bin/codecept run
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"require-dev": {
"phpspec/phpspec": "^2.2",
"phpunit/phpunit": "4.*",
"codeception/codeception": "2.0.*"
"codeception/codeception": "^2.4"
}
}
18 changes: 18 additions & 0 deletions docker-compose.testing.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: '3'
services:
phpfpm:
tty: true
image: 'bitnami/php-fpm:7.2'
ports:
- 9000:9000
volumes:
- .:/app

nginx:
image: 'nginx:alpine'
depends_on:
- phpfpm
ports:
- '8000:80'
volumes:
- ./.docker/nginx/:/etc/nginx/conf.d/

0 comments on commit 9f712ce

Please sign in to comment.