Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: php:7.2-fpm-stretch
- pipelines:
- default:
- - step:
- script:
- - apt-get update && apt-get install -qy git curl libmcrypt-dev mysql-client libzip-dev
- - yes | pecl install mcrypt-1.0.1
- - docker-php-ext-install pdo_mysql
- - docker-php-ext-install zip
- - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- - composer install
- - ln -f -s .env.pipelines .env
- - php artisan migrate
- - php artisan serve &
- - sleep 5
- - ./vendor/bin/phpunit
- - curl -vk http://localhost:8000
- services:
- - mysql
- - step: &build-test-sonarcloud
- name: Build, test and analyze on SonarCloud
- script:
- - pipe: sonarsource/sonarcloud-scan:0.1.4
- variables:
- SONAR_TOKEN: ${SONAR_TOKEN}
- definitions:
- services:
- mysql:
- image: mariadb
- ports:
- - 3306:3306
- environment:
- MYSQL_DATABASE: gc
- MYSQL_ROOT_PASSWORD: root_user_password
- MYSQL_USER: test_user
- MYSQL_PASSWORD: test_user_password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement