Advertisement
Guest User

Untitled

a guest
May 18th, 2019
947
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.18 KB | None | 0 0
  1. image: php:7.2-fpm-stretch
  2.  
  3. pipelines:
  4.   default:
  5.       - step:
  6.           script:
  7.          - apt-get update && apt-get install -qy git curl libmcrypt-dev mysql-client libzip-dev
  8.           - yes | pecl install mcrypt-1.0.1
  9.           - docker-php-ext-install pdo_mysql
  10.           - docker-php-ext-install zip
  11.           - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  12.           - composer install
  13.           - ln -f -s .env.pipelines .env
  14.           - php artisan migrate
  15.           - php artisan serve &
  16.           - sleep 5
  17.           - ./vendor/bin/phpunit
  18.           - curl -vk http://localhost:8000
  19.         services:
  20.          - mysql
  21.       - step: &build-test-sonarcloud
  22.           name: Build, test and analyze on SonarCloud
  23.           script:
  24.             - pipe: sonarsource/sonarcloud-scan:0.1.4
  25.           variables:
  26.             SONAR_TOKEN: ${SONAR_TOKEN}
  27.  
  28. definitions:
  29.   services:
  30.     mysql:
  31.       image: mariadb
  32.       ports:
  33.        - 3306:3306
  34.       environment:
  35.         MYSQL_DATABASE: gc
  36.         MYSQL_ROOT_PASSWORD: root_user_password
  37.         MYSQL_USER: test_user
  38.         MYSQL_PASSWORD: test_user_password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement