jonnybarnes.uk/.travis.yml
Jonny Barnes b2c112eb91 Squashed commit of the following:
commit 6186d13cae259221f1948207acfdc109d3f71b11
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 17:01:48 2017 +0000

    Fixed borwsershot so run whole test suite again

commit fe8241368e514de7c28e6aaebe45757cea7f3fa0
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 16:56:51 2017 +0000

    Use nvm to install node

commit 391f4d3fa08906b3d0d905ae98448ce30e9cbc89
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 16:47:19 2017 +0000

    specify node version 8

commit 5e4df05b3985e069d605c9287f392f3370f27c13
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 14:59:00 2017 +0000

    Why didn’t filter work

commit 9fd5f2f6b29c77ad5d9a2c2dc03dbf05702e24fa
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 14:53:25 2017 +0000

    Move npm install to before_script and only test browsershot

commit bd04bcb835f436b080c02098c68042f71511ec4f
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 14:43:04 2017 +0000

    Remove a var_dump statement

commit 3904dcced167512868817fbe530b0de017ea1bc4
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 14:36:21 2017 +0000

    Install pupeteer on Travis

commit f01389fbfece436522597457c8a303756925a3d6
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 13:52:56 2017 +0000

    Allow failures on php 7.2

commit 4eafee0b47ebe428d2471bfe3ba71d7446e35092
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 13:52:37 2017 +0000

    Update chagelog

commit fabe8793f50edcc8b20a2cea5b0e76be9794eb25
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 13:50:49 2017 +0000

    Add a test for taking screenshots

commit 888b9546ecf5c000aa96099b009c4b7cd00f08ad
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 13:50:27 2017 +0000

    Move logic for taking screenshots and getting archive links to the BookmarkService class, this cleans up with acutal job

commit 7650fd3eda229b1a1e1e17f0667d203294384551
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Mon Nov 13 13:49:33 2017 +0000

    Update browsershot to v3
2017-11-13 17:26:38 +00:00

71 lines
1.9 KiB
YAML

language: php
sudo: false
dist: trusty
cache:
- apt
addons:
postgresql: "9.6"
apt:
sources:
- sourceline: 'deb http://ppa.launchpad.net/nginx/development/ubuntu trusty main'
packages:
- nginx
- realpath
- postgresql-9.6-postgis-2.3
- imagemagick
#- google-chrome-stable
artifacts:
s3_region: "eu-west-1"
paths:
- $(ls tests/Browser/screenshots/*.png | tr "\n" ":")
- $(ls tests/Browser/console/*.log | tr "\n" ":")
- $(ls storage/logs/*.log | tr "\n" ":")
- $(ls /tmp/*.log | tr "\n" ":")
services:
- postgresql
env:
global:
- setup=basic
php:
- 7.1
- 7.2
matrix:
allow_failures:
- php: 7.2
before_install:
- printf "\n" | pecl install imagick
- cp .env.travis .env
- echo 'error_log = "/tmp/php.error.log"' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
- psql -U travis -c 'create database travis_ci_test'
- psql -U travis -d travis_ci_test -c 'create extension postgis'
- travis_retry composer self-update --preview
install:
- if [[ $setup = 'basic' ]]; then travis_retry composer install --no-interaction --prefer-dist; fi
- if [[ $setup = 'stable' ]]; then travis_retry composer update --no-interaction --prefer-dist --prefer-stable; fi
- if [[ $setup = 'lowest' ]]; then travis_retry composer update --no-interaction --prefer-dist --prefer-lowest --prefer-stable; fi
- travis/install-nginx.sh
- . $HOME/.nvm/nvm.sh
- nvm install stable
- nvm use stable
- npm i puppeteer
before_script:
- php artisan key:generate
- php artisan migrate
- php artisan db:seed
#- google-chrome-stable --headless --disable-gpu --remote-debugging-port=9515 http://localhost:8000 &
#- sleep 5
script:
- php vendor/bin/phpunit --coverage-text
#- php artisan dusk
- php vendor/bin/security-checker security:check ./composer.lock --end-point=http://security.sensiolabs.org/check_lock