-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcircle.yml
51 lines (39 loc) · 1.33 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
machine:
timezone:
America/Chicago
node:
version: 6.1.0
php:
version: 7.1.3
# This will be added to the `/etc/hosts` file
hosts:
wordpress-circleci.dev: 127.0.0.1
dependencies:
pre:
# Use cURL to fetch WP-CLI
- curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
# Make sure WP-CLI is executable
- chmod +x wp-cli.phar
# Download WordPress into `wordpress` directory
- ./wp-cli.phar core download --allow-root --path=wordpress
# Generate `wp-config.php` file
- ./wp-cli.phar core config --allow-root --dbname=wordpress --dbuser=ubuntu --dbhost=localhost --path=wordpress
# Install WordPress
#- ./wp-cli.phar core install --allow-root --admin_name=admin --admin_password=admin [email protected] --url=http://wordpress-circleci.dev:8080 --title=WordPress --path=wordpress
# And use WP-CLI to install wp-cfm
#- ./wp-cli.phar plugin install wp-cfm
test:
override:
# This is just for us to see that the wp-cfm plugin was installed
#- ./wp-cli.phar plugin list --path=web
# Finally, run our Behat features
#- vendor/bin/behat
deployment:
production:
branch: production
commands:
- sh ./deploy_prod.sh
staging:
branch: master
commands:
- sh ./deploy_staging.sh