Skip to content

Instantly share code, notes, and snippets.

@andreybolonin
Created July 11, 2017 10:39
Show Gist options
  • Save andreybolonin/c93f6694bb3e1fbca22590905f072a42 to your computer and use it in GitHub Desktop.
Save andreybolonin/c93f6694bb3e1fbca22590905f072a42 to your computer and use it in GitHub Desktop.
image: ubuntu:zesty
services:
- mariadb
variables:
MYSQL_DATABASE: smsclub_old
MYSQL_ROOT_PASSWORD: root
before_script:
- apt-get update -qq && apt-get install -y -qq software-properties-common
- LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php -y
- apt-get update -qq
- apt-get install -y php7.1 php7.1-cli php7.1-xml php7.1-zip php7.1-mysql php7.1-sockets php7.1-curl php7.1-redis curl composer redis-server
- apt-get install mysql-client -y -qq
- service redis-server start
- mysql --user=root --password="$MYSQL_ROOT_PASSWORD" --host=mariadb "$MYSQL_DATABASE" < sql/smsclub_data.sql
- mysql --user=root --password="$MYSQL_ROOT_PASSWORD" --host=mariadb "$MYSQL_DATABASE" < sql/smsclub_base.sql
- composer install -o --ignore-platform-reqs
test:
script:
- php -v
- vendor/bin/phpunit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment