bash-multi Inerpolate workspace/cache name

The signed URL is passed through `Shellwords.escape` before
sent to `casher`. This means that if the user gives
`name: $VAR`, the literal `$VAR` is passed to `casher`.

Ideally `travis-build` can deal with this problem, but it is
a little more involved.

So we interpolate the URLs on the fly here.

Hiro Asari avatar Hiro Asari

Push event #432.1 passed

  • Ran for
AMD64
Ruby: 2.5
Git
language: ruby

rvm: 2.5

script: bundle exec rspec spec
NosCoreIO/NosCore:.travis.yml@0a6311f
language: csharp
mono: none
dist: xenial
addons:
    snaps:
      - name: dotnet-sdk
        confinement: classic
        channel: 5.0/beta
env:
    global:
      - DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true
      - DOTNET_CLI_TELEMETRY_OPTOUT=1
install:
    - export PATH="$PATH:/home/travis/.dotnet/tools"
    - export PATH="$PATH:$HOME/.local/bin"
    - pip install --user awscli
    - sudo snap alias dotnet-sdk.dotnet dotnet
    - chmod -R a+x scripts
script:
    - dotnet --version
    - dotnet restore
    - dotnet build
    - dotnet test test/NosCore.Tests/NosCore.Tests.csproj --no-build --filter TestCategory!=OPTIONAL-TEST /p:CollectCoverage=true /p:CoverletOutputFormat=opencover /p:ExcludeByAttribute='CompilerGeneratedAttribute' /p:CoverletOutput='./tools/coverage.opencover.xml'
after_success:
    - curl -s https://codecov.io/bash | bash -s -- -t $(CODECOV_TOKEN)
after_script:
    - dotnet test test/NosCore.Tests/NosCore.Tests.csproj --no-build --filter TestCategory=OPTIONAL-TEST
    - aws ecr get-login --region us-west-2 --no-include-email
    - aws lambda invoke --function-name noscore-travis --region us-west-2 --payload '{"Build_Id":"'"$TRAVIS_JOB_ID"'", "Travis_Branch":"'"$TRAVIS_BRANCH"'", "Travis_Test_Result":"'"$TRAVIS_TEST_RESULT"'", "Travis_Commit":"'"$TRAVIS_COMMIT"'", "Travis_Repo_Slug":"'"$TRAVIS_REPO_SLUG"'", "Travis_Pull_Request":"'"$TRAVIS_PULL_REQUEST"'"}' outputfile

deploy:
  cleanup: true
  provider: script
  script: sudo bash ./scripts/docker-publish.sh
  on:
    branch: master
Build Config
{
  "os": [
    "linux"
  ],
  "rvm": [
    "2.5"
  ],
  "script": [
    "bundle exec rspec spec"
  ],
  "language": "ruby"
}