Skip to content

Commit

Permalink
Always upload artifacts used in other test activities
Browse files Browse the repository at this point in the history
if this is a pull request we want to make a versioned copy of the
compiled binaries so they can be used by the image export tests
to make sure the PR hasn't broken other components
  • Loading branch information
atodorov committed Oct 23, 2017
1 parent 990ae3a commit caa9b79
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,18 @@ after_success:
docker login -u atodorov -p $DOCKER_PASSWORD
docker push welder/bdcs-build-img
fi
s3cmd sync --access_key="$ARTIFACTS_KEY" --secret_key="$ARTIFACTS_SECRET" -v -P ./importer/dist/build/import/import s3://weldr/import
s3cmd sync --access_key="$ARTIFACTS_KEY" --secret_key="$ARTIFACTS_SECRET" -v -P ./importer/dist/build/export/export s3://weldr/export
TARGET_DIR="artifacts/bdcs"
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
TARGET_DIR="$TARGET_DIR/$TRAVIS_PULL_REQUEST"
fi
# upload artifacts on which other test activities depend
s3cmd sync --access_key="$ARTIFACTS_KEY" --secret_key="$ARTIFACTS_SECRET" -v -P ./importer/dist/build/import/import s3://weldr/$TARGET_DIR/import
s3cmd sync --access_key="$ARTIFACTS_KEY" --secret_key="$ARTIFACTS_SECRET" -v -P ./importer/dist/build/export/export s3://weldr/$TARGET_DIR/export
s3cmd sync --access_key="$ARTIFACTS_KEY" --secret_key="$ARTIFACTS_SECRET" -v -P ./schema.sql s3://weldr/$TARGET_DIR/schema.sql
notifications:
email:
on_failure: change
Expand Down

0 comments on commit caa9b79

Please sign in to comment.