Skip to content
Snippets Groups Projects
Commit e7bfec3e authored by Muhammad Rafid Amrullah's avatar Muhammad Rafid Amrullah
Browse files

add CI script

parent e07b4d1b
Branches
No related merge requests found
APP_NAME=PMO-TALENT
APP_ENV=local
APP_KEY=base64:SjrUlEGB06+kb35tBEob7OC2dQfa5TrODCprpqNHsr8=
APP_DEBUG=true
APP_URL=http://localhost
LOG_CHANNEL=stack
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=ppl
DB_USERNAME=mysql
DB_PASSWORD=speakingmysql
BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
QUEUE_DRIVER=sync
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=
MAIL_PASSWORD=
MAIL_ENCRYPTION=tls
PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1
MIX_PUSHER_APP_KEY="${PUSHER_APP_KEY}"
MIX_PUSHER_APP_CLUSTER="${PUSHER_APP_CLUSTER}"
APP_ENV=testing
APP_DEBUG=true
APP_KEY=base64:SjrUlEGB06+kb35tBEob7OC2dQfa5TrODCprpqNHsr8=
APP_URL=http://pplk2b.if.itb.ac.id
DB_HOST=mysql
DB_DATABASE=ppl
DB_USERNAME=root
DB_PASSWORD=ppl2018
#!/bin/bash
# Install dependencies only for Docker.
[[ ! -e /.dockerenv ]] && exit 0
set -xe
# Update packages and install composer and PHP dependencies.
apt-get update -yqq
apt-get install git libcurl4-gnutls-dev libicu-dev libmcrypt-dev libvpx-dev libjpeg-dev libpng-dev libxpm-dev zlib1g-dev libfreetype6-dev libxml2-dev libexpat1-dev libbz2-dev libgmp3-dev libldap2-dev unixodbc-dev libpq-dev libsqlite3-dev libaspell-dev libsnmp-dev libpcre3-dev libtidy-dev -yqq
# Compile PHP, include these extensions.
docker-php-ext-install mbstring mcrypt pdo_mysql curl json intl gd xml zip bz2 opcache
# Install Composer and project dependencies.
curl -sS https://getcomposer.org/installer | php
php composer.phar install
# Copy over testing configuration.
cp .env.testing .env
# Generate an application key. Re-cache.
php artisan key:generate
php artisan config:cache
# Run database migrations.
php artisan migrate --seed
before_script:
- bash .gitlab-ci.sh
variables:
MYSQL_DATABASE: ppl
MYSQL_ROOT_PASSWORD: ppl2018
phpunit:php5.5:mysql5.6:
image: php:5.5
services:
- mysql:5.6
script:
- php vendor/bin/phpunit --colors
phpunit:php5.6:mysql5.6:
image: php:5.6
services:
- mysql:5.6
script:
- php vendor/bin/phpunit --colors
phpunit:php5.5:mysql5.7:
image: php:5.5
services:
- mysql:5.7
script:
- php vendor/bin/phpunit --colors
phpunit:php5.6:mysql5.7:
image: php:5.6
services:
- mysql:5.7
script:
- php vendor/bin/phpunit --colors
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment