Try uploading to s3

This commit is contained in:
Nabeel Shahzad
2018-01-17 00:23:50 -05:00
parent 282bedf4d4
commit 8e646fb78c
2 changed files with 2 additions and 3 deletions

View File

@@ -1,6 +1,3 @@
#
#
language: php
php:
- '7.0'
@@ -29,6 +26,7 @@ addons:
# - mysql -e 'CREATE DATABASE IF NOT EXISTS phpvms;'
before_script:
- curl -sL https://raw.githubusercontent.com/travis-ci/artifacts/master/install | bash
- cp .travis/env.travis.php env.php
- composer install --no-interaction --verbose

View File

@@ -54,6 +54,7 @@ if [ "$TRAVIS" = "true" ]; then
echo "running rsync"
rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/phpvms/downloads/
artifacts upload /tmp/$TAR_NAME
curl -X POST --data "{\"content\": \"A new build is available at http://phpvms.net/downloads/$TAR_NAME ($VERSION)\"}" -H "Content-Type: application/json" $DISCORD_WEBHOOK_URL