forked from aaemnnosttv/wp-cli-login-command
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
34 lines (27 loc) · 685 Bytes
/
.travis.yml
File metadata and controls
34 lines (27 loc) · 685 Bytes
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
language: php
php:
- 5.5
- 5.6
- 7.0
- 7.1
install: composer install
before_script:
- composer validate --strict
- mysql -e 'CREATE DATABASE wp_cli_test;' -uroot
- mysql -e 'GRANT ALL PRIVILEGES ON wp_cli_test.* TO "wp_cli_test"@"localhost" IDENTIFIED BY "password1"' -uroot
script:
- composer test
- composer run-behat
cache:
directories:
- vendor
before_deploy:
- openssl aes-256-cbc -K $encrypted_70f7c684b483_key -iv $encrypted_70f7c684b483_iv -in deploy/key.enc -out deploy/key -d
deploy:
provider: script
script: bash deploy/deploy-plugin.sh
skip_cleanup: true
on:
condition: [[ $TRAVIS_TAG == server-* ]]
tags: true
php: 7.0