Merge pull request #41 from maxhelias/travis

Adding Travis integration
This commit is contained in:
Kévin Dunglas 2019-01-07 00:10:49 +01:00 committed by GitHub
commit 8172034260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 1 deletions

19
.gitattributes vendored
View File

@ -1,2 +1,19 @@
* text=auto
* text=auto eol=lf
*.conf text eol=lf
*.html text eol=lf
*.ini text eol=lf
*.js text eol=lf
*.json text eol=lf
*.md text eol=lf
*.php text eol=lf
*.sh text eol=lf
*.yaml text eol=lf
*.yml text eol=lf
bin/console text eol=lf
*.ico binary
*.png binary
.travis.yml export-ignore
README.md export-ignore

34
.travis.yml Normal file
View File

@ -0,0 +1,34 @@
sudo: required
services:
- docker
## Use this method when travis updated docker-ce for the variable substitution
#addons:
# apt:
# packages:
# - docker-ce
env:
DOCKER_COMPOSE_VERSION: 1.18.0
before_install:
- 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
install:
- true
script:
- docker-compose -v
- docker-compose pull --ignore-pull-failures
- docker-compose build --pull
- docker-compose up -d
- sleep 30
- docker-compose exec -T app composer req sensiolabs/security-checker
- docker-compose exec -T app bin/console security:check
- docker-compose run --no-deps -T app composer validate --no-check-publish
- curl http://localhost # Client
- curl -k https://localhost # Client (HTTP/2)
- docker-compose logs # Display logs if anything wrong