Pull request event #18 passed

  • Ran for
  • Total time
  • New branch build
murtaza-swati/repoTest1:.travis.yml@c2fccc8
# os: linux
# language: ruby
# after_success:
# - echo -e "!!!!!!after success executed!!!!!!"
# after_failure:
# - echo -e "!!!!!!!after failure executed!!!!!!!!"

jobs:
  include:
    - stage: warm_cache
      script:
        - echo "foo" > foo.txt
      workspaces:
        create:
          name: ws1
          paths:
            - foo.txt
    - stage: use_cache
      workspaces:
        use: ws1
      script:
        - cat foo.txt || true
        - cat foo.txt || true
Build Config
{
  "language": "ruby",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "jobs": {
    "include": [
      {
        "workspaces": {
          "create": {
            "name": "ws1",
            "paths": [
              "foo.txt"
            ]
          }
        },
        "stage": "warm_cache",
        "script": [
          "echo \"foo\" > foo.txt"
        ]
      },
      {
        "workspaces": {
          "use": "ws1"
        },
        "stage": "use_cache",
        "script": [
          "cat foo.txt || true",
          "cat foo.txt || true"
        ]
      }
    ]
  }
}