Gitlab CI udpates

This commit is contained in:
Deon George 2020-01-23 00:04:45 +11:00
parent 436c3d6787
commit a08e8544e4

View File

@ -25,37 +25,18 @@ cache:
# This is a basic example for a gem or script which doesn't use
# services such as redis or postgres
before_script:
# Update packages
#- echo 'deb http://deb.debian.org/debian jessie non-free' >> /etc/apt/sources.list.d/non-free.list
#- apt-get update -yqq
# Add gnupg & zip
- apt-get update -yqq && apt-get install gnupg2 unzip -yqq
# Upgrade to Node 12
- curl -sL https://deb.nodesource.com/setup_12.x | bash -
# Install dependencies
#- apt-get install git nodejs 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 pkg-config libsnmp-dev snmp-mibs-downloader -yqq
#- download-mibs
- apt-get install git autoconf nodejs -yqq
# Install php extensions
#- docker-php-ext-configure gd --with-freetype-dir=/usr/include/freetype2 --with-jpeg-dir=/usr/include/
#- docker-php-ext-install pdo_mysql bz2 gettext sockets gmp gd pcntl snmp
#- docker-php-ext-install mbstring mcrypt pdo_mysql curl json intl gd xml zip bz2 opcache
- apt-get install git autoconf -yqq
# Install & enable Xdebug for code coverage reports
- pecl install xdebug
- docker-php-ext-enable xdebug
# Install Composer and project dependencies.
- curl -sS https://getcomposer.org/installer | php
- php composer.phar install
# Install Node dependencies.
# comment this out if you don't have a node dependency
- npm install
- composer require doctrine/dbal
# Copy over testing configuration.
# Don't forget to set the database config in .env.testing correctly
@ -64,12 +45,6 @@ before_script:
# DB_USERNAME=root
# DB_PASSWORD=secret
# Run npm build
# comment this out if you don't have a frontend build
# you can change this to to your frontend building script like
# npm run build
- npm run dev
# Generate an application key. Re-cache.
- php artisan key:generate --env=testing
- php artisan config:cache --env=testing