Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions user/build-stages/share-files-s3.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ This example has 2 build stages:
Here's what the `.travis.yml` config could look like:

```yaml
dist: xenial
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is now optional as xenial is the default distro.


env:
global:
# include $HOME/.local/bin for `aws`
- PATH=$HOME/.local/bin:$PATH
# Use Python 3.7 for awscli
- PATH=/opt/python/3.7.1/bin:$PATH

before_install:
# set up awscli packages
- pip install --user awscli
- pip install -U pip
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to more explicitly use --upgrade than -U to avoid confusion because pip also has a --user option.

- pip install awscli
- mkdir -p ~/$TRAVIS_BUILD_NUMBER
- aws s3 sync s3://travis-build-stages-shared-storage-test/$TRAVIS_BUILD_NUMBER ~/$TRAVIS_BUILD_NUMBER

Expand Down