more archiving fixes

This commit is contained in:
Nabeel Shahzad
2017-12-14 11:43:32 -06:00
parent cfa46f1f7f
commit ff1cb959ff
4 changed files with 3 additions and 4 deletions

View File

@@ -10,12 +10,12 @@ addons:
before_install: before_install:
- mysql -e 'CREATE DATABASE IF NOT EXISTS phpvms;' - mysql -e 'CREATE DATABASE IF NOT EXISTS phpvms;'
before_script: before_script:
- cp .env.travis .env - cp .travis/env.travis .env
- composer install --no-interaction - composer install --no-interaction
script: script:
- php artisan database:create --reset - php artisan database:create --reset
- php artisan migrate:refresh --seed - php artisan migrate:refresh --seed
- cp tests/phpunit.travis.xml phpunit.xml - cp .travis/phpunit.travis.xml phpunit.xml
- vendor/bin/phpunit --debug --verbose - vendor/bin/phpunit --debug --verbose
after_failure: after_failure:
- cat storage/logs/*.log - cat storage/logs/*.log

View File

@@ -17,11 +17,10 @@ if [ "$TRAVIS" = "true" ]; then
find . -type d -name ".git" | xargs rm -rf find . -type d -name ".git" | xargs rm -rf
rm -rf .idea phpvms.iml .travis .dpl rm -rf .idea phpvms.iml .travis .dpl
rm -rf .phpstorm.meta.php _ide_helper.php rm -rf .phpstorm.meta.php _ide_helper.php
rm -rf .env .env.prod.example
mv .env.dev.example .env mv .env.dev.example .env
echo "creating tarball" echo "creating tarball"
tar -czf /tmp/$TAR_NAME -C $TRAVIS_BUILD_DIR/../ phpvms/. tar -czf /tmp/$TAR_NAME -C $TRAVIS_BUILD_DIR/../ .
echo "running rsync" echo "running rsync"
rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/downloads/ rsync -ahP --delete-after /tmp/$TAR_NAME downloads@phpvms.net:/var/www/downloads/