forked from mypickee/pickee-wp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
32 lines (29 loc) · 929 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
machine:
php:
version: 7.0.20
services:
- mysql
environment:
DATABASE_URL: "mysql://pickee_wp_admin:password@127.0.0.1/pickee_wp_test"
dependencies:
pre:
# Create MySQL user and database
- mysql -u ubuntu -e "
CREATE DATABASE pickee_wp_test;
CREATE USER pickee_wp_admin@localhost IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON pickee_wp_test.* TO pickee_wp_admin@localhost;
FLUSH PRIVILEGES;"
# Install wp-cli
- curl -O "https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar"
- chmod +x wp-cli.phar
- sudo mv wp-cli.phar /usr/local/bin/wp
# Install Wordpress
- wp core install --admin_name=pickee_wp_admin --admin_password=password --admin_email=info@mypickee.com --url=http://127.0.0.1 --title=Pickee
test:
override:
- composer test
deployment:
staging:
branch: master
heroku:
appname: pickee-wp-staging