forked from postlight/headless-wp-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
19 lines (16 loc) · 794 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
services:
- docker
addons:
apt:
packages:
- docker-ce
before_script:
- chmod -R o+w . # ensure docker can write wp & frontend installation files
- docker-compose up -d
- while ! ((docker logs frontend) | grep 'Ready'); do sleep 10; done # wait for frontend install
- while ! ((docker logs frontend-graphql) | grep 'Compiled successfully'); do sleep 10; done # wait for frontend-graphql install
- while ! ((docker logs wp-headless) | grep 'You can now log in'); do sleep 10; done # wait for wordpress install
script:
- curl localhost:3000 | grep 'Congratulations!'
- curl localhost:3001 | grep 'WordPress + React'
- docker exec -w /var/www/html/wp-content/themes/postlight-headless-wp wp-headless phpcs -v .