murtaza-swati/repoTest1:.travis.yml@bada5fa
# 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"
]
}
]
}
}