Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- image: php:7.2-apache
- services:
- - andrioshe/mysql-ah:latest
- variables:
- MYSQL_USER: root
- MYSQL_DATABASE: auctionhouse
- MYSQL_ROOT_PASSWORD: root
- cache:
- paths:
- - vendor/
- - node_modules/
- before_script:
- # Install all dependencies
- - apt-get update -yqq
- - apt-get install gnupg -yqq
- - curl -sL https://deb.nodesource.com/setup_10.x | bash -
- - apt-get install git zip libpng-dev wget gnupg nodejs -yqq
- - pecl install xdebug-2.6.1
- - docker-php-ext-enable xdebug
- - docker-php-ext-install gd zip pdo pdo_mysql
- - cd app/
- - curl -sS https://getcomposer.org/installer | php
- - php composer.phar install
- - echo "date.timezone=Europe/Berlin" > /usr/local/etc/php/conf.d/date.ini
- - echo "display_startup_errors=1" > /usr/local/etc/php/conf.d/errors.ini
- - echo "memory_limit=2G" > /usr/local/etc/php/conf.d/memoryLimit.ini
- # - npm install
- - pwd
- - php artisan migrate --seed --force
- # - mv .env.example .env
- # - npm run dev
- - php artisan jwt:secret
- - php artisan key:generate
- test:
- script:
- - php vendor/bin/phpunit --coverage-text --colors=never
- # - npm test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement