diff --git a/.gitattributes b/.gitattributes index efdba87..c6d3328 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2a5d19a --- /dev/null +++ b/.travis.yml @@ -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