Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: php:7.1.1
- pipelines:
- default:
- - step:
- script:
- - echo "RUN!!!"
- branches:
- develop:
- - step:
- name: Install all requirements
- deployment: test
- caches:
- - composer
- script:
- - apt-get update && apt-get install -qy git curl libmcrypt-dev mysql-client
- - docker-php-ext-install mcrypt && docker-php-ext-install pdo_mysql
- - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
- - composer install
- - cp .env.example .env
- - export APP_ENV=development
- - export CACHE_DRIVER=redis
- - export SESSION_DRIVER=redis
- - export DB_CONNECTION=mysql
- - php artisan key:generate
- - php artisan migrate
- - php artisan serve &
- - sleep 5
- - curl -vk http://localhost:8000
- services:
- - mysql
- - redis
- definitions:
- services:
- mysql:
- image: mysql
- environment:
- MYSQL_DATABASE: 'finance'
- MYSQL_USER: 'finance'
- MYSQL_ROOT_PASSWORD: 'finance'
- redis:
- image: redis
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement