From 872b5cd4954c9ab41ebe977296eaba35d46734e2 Mon Sep 17 00:00:00 2001 From: Kjell Morgenstern Date: Wed, 3 Jul 2019 14:56:23 +0200 Subject: [PATCH] Fix s3 sync for windows, add build for master branch --- .travis.yml | 3 +++ tools/aws_tasks.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 549661374..90059a9f0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -126,6 +126,9 @@ jobs: - tools/build-windows.bat "$TRAVIS_COMMIT"-debug-continuous-"$TRAVIS_BUILD_NUMBER" - cp $TRAVIS_BUILD_DIR/../release64/fritzing-$TRAVIS_COMMIT-debug-continuous-$TRAVIS_BUILD_NUMBER.64.pc.zip ~/$TRAVIS_BUILD_NUMBER + after_success: + - ./tools/aws_tasks.sh synchronize_up + - stage: deploy_to_github before_install: - mkdir -p "$HOME/$TRAVIS_BUILD_NUMBER" diff --git a/tools/aws_tasks.sh b/tools/aws_tasks.sh index 1f0eab7f7..9b6d19f74 100755 --- a/tools/aws_tasks.sh +++ b/tools/aws_tasks.sh @@ -58,7 +58,7 @@ aws_secret_access_key = ${AWS_SECRET_ACCESS_KEY} EOL } -if [[ ( "$TRAVIS_PULL_REQUEST" == false ) && ( "$TRAVIS_BRANCH" == "develop" ) && ( "$TRAVIS_REPO_SLUG" == "fritzing/fritzing-app" )]]; then +if [[ ( "$TRAVIS_PULL_REQUEST" == false ) && ( "$TRAVIS_BRANCH" == "develop" || "$TRAVIS_BRANCH" == "master" ) && ( "$TRAVIS_REPO_SLUG" == "fritzing/fritzing-app" )]]; then x_aws_env echo "Running deploy task '$1' on $TRAVIS_OS_NAME ( $OSTYPE )"