tainacan/.travis.yml

87 lines
9.0 KiB
YAML
Raw Normal View History

2018-07-12 17:51:20 +00:00
sudo: true
2018-05-28 17:23:19 +00:00
language: php
php:
- 7.1
2018-06-06 13:06:14 +00:00
- 7.2
2018-06-04 19:22:27 +00:00
- 5.6
2018-06-05 16:29:25 +00:00
matrix:
allow_failures:
2018-05-28 17:23:19 +00:00
fast_finish: true
2018-06-11 16:05:05 +00:00
allow_failures:
- php: 5.6
2018-05-28 17:23:19 +00:00
addons:
- ssh_know_hosts:
2018-06-05 16:29:25 +00:00
- "$ssh_host"
2018-05-28 17:23:19 +00:00
apt:
sources:
2018-06-05 16:29:25 +00:00
- mysql-5.7-trusty
2018-06-06 16:09:16 +00:00
- phpunit-6.1
2018-06-05 16:29:25 +00:00
packages:
- sshpass
- mysql-server
- mysql-client
2018-06-04 16:36:39 +00:00
services:
2018-06-05 16:29:25 +00:00
- mysql
2018-05-28 17:23:19 +00:00
before_install:
2018-07-12 17:03:55 +00:00
- sudo apt-get update
2018-07-12 16:52:28 +00:00
- sudo apt-get install sshpass
2018-05-30 17:08:33 +00:00
- sudo service mysql restart
2018-07-18 18:53:03 +00:00
- mysql -e 'CREATE DATABASE IF NOT EXISTS test;'
2018-05-28 17:23:19 +00:00
install:
2018-07-18 13:54:37 +00:00
- echo -e "Install"
2018-06-04 18:49:52 +00:00
- sudo mv ./tests/bootstrap-config-sample.php ./tests/bootstrap-config.php
2018-06-05 16:29:25 +00:00
- sudo ./tests/bin/install-wp-tests.sh test travis "" /tmp/wordpress localhost latest
true
2018-06-04 18:41:26 +00:00
- composer install
2018-06-04 19:08:47 +00:00
- sudo mkdir /tmp/wordpress/wordpress-test/wp-content/uploads
2018-07-10 13:52:58 +00:00
- sudo chmod -R 777 /tmp/wordpress/wordpress-test/wp-content/uploads
2018-06-29 13:21:05 +00:00
- sudo wget https://phar.phpunit.de/phpunit-6.5.7.phar -P /tmp
2018-06-11 16:05:05 +00:00
- sudo chmod +x /tmp/phpunit-6.5.7.phar
2018-06-29 04:39:32 +00:00
- sudo mv /tmp/phpunit-6.5.7.phar /usr/local/bin/phpunit-6
- sudo wget https://phar.phpunit.de/phpunit-5.phar -P /tmp
- sudo chmod +x /tmp/phpunit-5.phar
- sudo mv /tmp/phpunit-5.phar /usr/local/bin/phpunit-5
- echo '#!/bin/bash' |sudo tee /usr/local/bin/phpunit > /dev/null
2018-06-29 16:18:31 +00:00
- echo 'if ( php -v|grep -q --only-matching --perl-regexp "5\.\\d+\.\\d+" );then /usr/local/bin/phpunit-5 $@;else /usr/local/bin/phpunit-6 $@;fi;exit $?' |sudo tee -a /usr/local/bin/phpunit > /dev/null
2018-06-29 04:39:32 +00:00
- sudo chmod +x /usr/local/bin/phpunit
2018-07-16 17:07:27 +00:00
script: /usr/local/bin/phpunit # phpunit
2018-05-29 12:25:16 +00:00
before_deploy:
- echo "Seção executada antes do deploy!"
- openssl aes-256-cbc -K $encrypted_cb93ef43fcd2_key -iv $encrypted_cb93ef43fcd2_iv
-in deploy_rsa.enc -out /tmp/deploy_rsa -d
- eval "$(ssh-agent -s)"
- chmod 600 /tmp/deploy_rsa
- ssh-add /tmp/deploy_rsa
- echo -e "Host $ssh_host\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- ssh-add -l
2018-05-28 17:23:19 +00:00
deploy:
2018-05-28 18:23:04 +00:00
- provider: script
2018-08-29 18:44:07 +00:00
script: sshpass -p '$ssh_password' ssh $ssh_user@$ssh_host sh /home/l3p/atualiza_git/atualiza_todos.sh #MECHI AQUI!! #ssh $ssh_user@$ssh_host $script_deploy_tainacan
2018-05-28 18:23:04 +00:00
skip_cleanup: true
2018-06-05 16:29:25 +00:00
on:
2018-06-06 12:45:55 +00:00
branch: develop
2018-05-28 17:23:19 +00:00
cache:
directories:
- vendor
- composer
notifications:
2018-06-05 16:29:25 +00:00
slack:
2018-06-05 13:50:39 +00:00
rooms:
2019-07-17 19:00:21 +00:00
secure: WjgA4OIad0/Ai+x1TUd7KShXpaJco9E/MfI6DW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yeGvSr3c9Q8tF0JtjG55CWDDqmDiL1CKEZh6sigK/wM44hlnpoS8zHt18Wak5dcN/sI0pqGt5CLO+mh1fhjcNcuOVYEQdN4iKXynBvWMivqUDuZ1ImsJeD0tFgQqHyZ5qMXidFQ9G6RjeArMvd/lsGWiZ192ophX1x0VGCNvR4jfPvJN2aGC+DTVzxC6UAt5/oFcYxutqOC/NSxAeVd4/Nh4k/cQXI1fWorXhKRSkTq/tM6I=
2018-06-05 14:17:08 +00:00
on_sucess: always
on_failure: always
2018-05-28 18:48:13 +00:00
email:
2018-05-28 17:23:19 +00:00
on_success: never
on_failure: always
env:
global:
- secure: LnUpxgHL/Qgpbg20mRErlnwb8tvNs6f7uPRe9c82UuMP69uDZeD3K5GNzL6u0Y+C/zNHk7tCnUszDC7FtQAij6qi72HHW2zz4zVJ+DFI3b+hx7+rSKsjtbnJChTbknSu3rW+yHYRTIUZJQ/Tg6thDLKzU0a4VRb+ickDpRYLyP+Cf4+xs7rwAhjiboMNIGXahrCpnbhctmOhRgZaHvfnPB9prRs5lOCCBQqSwMmjEo7OJeCCUjfpU5xq3EjUEzwjzzBlSf3240PS/LOBFr2iGF30VT9LDTb1iUZU1gTcaxaK+/EjKLG/wtcH8TOaLJpsksbnMkSTrG3ICblXl1G4Itu8IHzLgOmWoiWIVXZ4y17aYyj/y7YZtX+fjB6qs9RG5ZnSpHkSDEni8CCC8Ltf9jVSkLEust/bNLgkd02hJ4xtVxOaoBYEh3hcylJ/co8BTDdbNyT3BwrFc4f2jfRh5DYzyrKaTG5IJAT2BfyjD/BsxBE3EgIuJFja1zVJKMcuCmogDiHi6sb0zhF+LbLy0nXqvysTrMEYbDppVYQloz3BKb2v2m/jc89G7v8AjnvwTUgj64PUj+p10ngfIA+FHPILLtd/fNm0zRIRDqSfE7rpGZo9EoZ9jq0wVSmy0DK8kFTX+9RFW8xYmFnTgB3beKWqdK9CAqXEeeD3ABejXTc=
- secure: ZgQILlaSklEldQIISTfQC+0vhutWYs3nWzQ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