shared-storage-with-s3 simplify shared files example

Push event #28 canceled

  • Ran for
  • Total time
The .travis.yml file used for this job is not available
Build Config
{
  "env": {
    "global": [
      "PATH=$HOME/.local/bin:$PATH"
    ]
  },
  "jobs": {
    "include": [
      {
        "stage": "setup file 1",
        "script": "echo one | tee > ~/shared/one"
      },
      {
        "stage": "setup file 2",
        "script": "echo two | tee > ~/shared/two"
      },
      {
        "stage": "use shared files",
        "script": [
          "cat ~/shared/*"
        ]
      }
    ]
  },
  "sudo": false,
  "after_success": [
    "aws s3 sync ~/shared s3://travis-build-stages-shared-storage-test/shared"
  ],
  "before_install": [
    "pip install --user awscli",
    "mkdir -p ~/shared",
    "aws s3 sync s3://travis-build-stages-shared-storage-test/shared ~/shared"
  ]
}