Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is a sample build configuration for PHP.
- # Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
- # Only use spaces to indent your .yml configuration.
- # -----
- # You can specify a custom docker image from Docker Hub as your build environment.
- image: php:7.1.1
- pipelines:
- default:
- - step:
- caches:
- - node
- - composer
- script:
- - rm /bin/sh && ln -s /bin/bash /bin/sh
- - apt-get update -yqq && apt-get install -y git curl unzip libnss3-dev libxi6 libgconf-2-4 libcurl4-gnutls-dev mysql-client libicu-dev libmcrypt-dev libvpx-dev libjpeg-dev libpng-dev zlib1g-dev libfreetype6-dev libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev bzip2 libfontconfig xvfb chromium
- - docker-php-ext-install mcrypt pdo_mysql
- - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- - cp xvfb-chromium /usr/bin/xvfb-chromium
- - ln -s /usr/bin/xvfb-chromium /usr/bin/google-chrome && chmod +x /usr/bin/google-chrome && ln -s /usr/bin/xvfb-chromium /usr/bin/chromium-browser && chmod +x /usr/bin/chromium-browser
- - composer install
- - php -r "file_exists('.env') || copy('.env.example', '.env');"
- - export DB_CONNECTION=mysql
- - export APP_ENV=testing
- - php artisan key:generate
- - php artisan migrate
- - php artisan serve &
- - chmod +x ./vendor/laravel/dusk/bin/chromedriver-linux
- - sleep 5
- - curl -vk http://localhost:8000
- - xvfb-chromium &
- - ./vendor/laravel/dusk/bin/chromedriver-linux >/dev/null 2>&1 &
- - sleep 5
- - ./testRunner
- - curl "https://forge.laravel.com/servers//sites/3-48/deploy/http?token=lrYdV"
- services:
- - mysql
- definitions:
- services:
- mysql:
- image: mysql
- environment:
- MYSQL_DATABASE: 'homestead'
- MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
- MYSQL_USER: 'homestead'
- MYSQL_PASSWORD: 'secret'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement