Advertisement
Guest User

Untitled

a guest
Sep 10th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 2.05 KB | None | 0 0
  1. # This is a sample build configuration for PHP.
  2. # Check our guides at https://confluence.atlassian.com/x/e8YWN for more examples.
  3. # Only use spaces to indent your .yml configuration.
  4. # -----
  5. # You can specify a custom docker image from Docker Hub as your build environment.
  6. image: php:7.1.1
  7.  
  8. pipelines:
  9.   default:
  10.     - step:
  11.         caches:
  12.          - node
  13.           - composer
  14.         script:
  15.          - rm /bin/sh && ln -s /bin/bash /bin/sh
  16.           - 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
  17.           - docker-php-ext-install mcrypt pdo_mysql
  18.           - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  19.           - cp xvfb-chromium /usr/bin/xvfb-chromium
  20.           - 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
  21.           - composer install
  22.           - php -r "file_exists('.env') || copy('.env.example', '.env');"
  23.           - export DB_CONNECTION=mysql
  24.           - export APP_ENV=testing
  25.           - php artisan key:generate
  26.           - php artisan migrate
  27.           - php artisan serve &
  28.           - chmod +x ./vendor/laravel/dusk/bin/chromedriver-linux
  29.           - sleep 5
  30.           - curl -vk http://localhost:8000
  31.           - xvfb-chromium &
  32.           - ./vendor/laravel/dusk/bin/chromedriver-linux  >/dev/null 2>&1 &
  33.           - sleep 5
  34.           - ./testRunner
  35.           - curl "https://forge.laravel.com/servers//sites/3-48/deploy/http?token=lrYdV"
  36.         services:
  37.          - mysql
  38. definitions:
  39.   services:
  40.     mysql:
  41.       image: mysql
  42.       environment:
  43.         MYSQL_DATABASE: 'homestead'
  44.         MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
  45.         MYSQL_USER: 'homestead'
  46.         MYSQL_PASSWORD: 'secret'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement