---
platform: linux
image_resource:
  type: docker-image
  source:
    repository: cfbuildpacks/ci
inputs:
  - name: buildpacks-ci
params:
  TERM: xterm-color
  CI_USERNAME:
  CI_PASSWORD:
  PIPELINE_URL:
run:
  path: bash
  args:
    - "-cl"
    - |
      set -ex
      cd buildpacks-ci
      bundle exec rspec --tag ~fly
      pushd dockerfiles/depwatcher
        shards
        crystal spec --no-debug
      popd
      ./tasks/run-buildpacks-ci-specs/fly-login.sh $CI_USERNAME $CI_PASSWORD
      bundle exec rake

---
platform: linux
image_resource:
  type: docker-image
  source:
    repository: cfbuildpacks/ci
inputs:
  - name: buildpacks-ci
params:
  TERM: xterm-color
  CI_USERNAME:
  CI_PASSWORD:
  PIPELINE_URL:
run:
  path: scripts/unit-test.sh

Use scripts/unit-test.sh to test buildpacks-ci
Use scripts/unit-test.sh to test buildpacks-ci
