-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
43 lines (34 loc) · 1.02 KB
/
.travis.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
os: linux
dist: bionic
services: docker
language: php
notifications:
email:
on_success: never
on_failure: change
branches:
only:
- master
cache:
directories:
- $HOME/.composer/cache
jobs:
include:
- env: WP_VERSION=5.6
- env: WP_VERSION=5.5
- env: WP_VERSION=5.4
- env: WP_VERSION=5.3
install:
- docker-compose build
before_script:
- docker-compose up -d
script:
- docker-compose ps
- docker-compose logs -f sut
- docker-compose ps
- docker-compose ps sut | grep 'Exit 0'
- docker-compose exec -T --user www-data wordpress wp core install --url="http://localhost" --title="WordPress-CI" --admin_user=admin --admin_password=password [email protected]
- docker-compose exec -T --user www-data wordpress wp plugin activate wp-plugin-template
- docker-compose exec -T --user www-data wordpress wp plugin deactivate wp-plugin-template
- docker-compose exec -T --user www-data wordpress wp plugin uninstall --skip-delete wp-plugin-template
- docker-compose down