-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
62 lines (51 loc) · 1.89 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
language: php
env:
global:
- WP_DB_USER=wp
- WP_DB_PASS=password
- WP_DB_NAME=wp_tests
matrix:
include:
- php: 7.2
env: WP_VERSION=* BUILD_DOCS=1
- php: 7.1
env: WP_VERSION=*
- php: 7.0
env: WP_VERSION=*
- php: 5.6
env: WP_VERSION=*
- php: 5.6
env: WP_VERSION=4.5.3
before_install:
- composer validate --strict
install:
- composer install
- composer require --dev --update-with-dependencies johnpbloch/wordpress:$WP_VERSION wp-phpunit/wp-phpunit:$WP_VERSION
- composer show
before_script:
- mysql -u root -e "GRANT ALL PRIVILEGES ON ${WP_DB_NAME}.* TO ${WP_DB_USER} IDENTIFIED BY '${WP_DB_PASS}';"
- mysql -u root -e "CREATE DATABASE ${WP_DB_NAME};"
- mkdir -p build/logs
script: composer test
after_success: travis_retry composer coverage -- -v
before_deploy: bash build/bin/build-docs.sh
deploy:
provider: s3
access_key_id: AKIAIUOEMT3YXWAPTEJA
secret_access_key:
secure: Wqmlzs52YkR3mzmW4tvFSFincFyiJnFJvtpxsiP7wdbOqefjYiZlF5jCn6rpXvwfm3OUSFzplSDzeWUKbHjPPDkIP82Zk6jbdFPHqDurkoBdfdkIkD/X/yfQsMTDVfchRZbWaNj/+IiykuHBDkljvhbaZtepODJMIkBjkZom4Yb3pjOUARgBGy2gtI4WhaVyg4oZ1Xm0o4S6i5AUGxIZjOBfCwePhsioEZFDsaV8QVWfa7K3ttlJtpGFDLhFzB29mMVXLWbTc8I7DoEu8ghJ0bq2ilO/dRxqy3IZN7ZkLockKbg+UM4xyp/b+yQtIvmN5DMM2m3aswyz8snLqrhtKRE1QjH4/UJUunLkvn79UotXm6Vl9HTnDYG5DimsMOGxVGEuWUsY/pN0tRqPA9HGjSqOeEzgj+OjOIlUssv/E1+5+OYtpBGOnvl6tzyAffQdhdhJ+wZgOsLs9U5zRnp+t3+TAvfN6+SPmG/SQX0T7mRIZNVhICH9p/gpqjtljBJy724Xx/ZquW/tkFLB6X/M97p4OBEtX+MvwCE0L/lV2/uT2fZV3BqdYYX7fCakpWVwEA7c2pxW8VyjZf97iindxh9HQrGAu7QT3lOGyIRYsCfWgfC4yPJcMWjJZj6d5uQvVrJtMOQzVo4y9HQ9b0iXe9LYQrjdLa4xBDgLatZw2W8=
bucket: api.silk.aaemnnost.tv
acl: public_read
skip_cleanup: true
local_dir: ../silk-api-docs
on:
branch: master
php: 7.2
condition: $BUILD_DOCS
cache:
directories:
- vendor
notifications:
email:
on_success: never
on_failure: change