I am using a deploy stage and want to call a script that is at the root of the project, but Travis is not able to find it. When using a script ‘ls -la’ I can see that the file structure is my project’s.
This is my .travis.yml file:
sudo: false
language: node_js
node_js:
- '8'
branches:
only:
- master
- /(release-|hotfix-)/
- /pr\//
- /^\d+\.\d+\.\d+$/
- CD_with_travis-CI
services:
- docker
install:
- docker build . --tag=nzz-app
- cd vamp/frontend/ && yarn && cd ../..
- yarn
deploy:
on:
branch: CD_with_travis-CI
provider: script
script: release.sh
script:
- yarn test
after_success:
- cd vamp/frontend/ && yarn run coverage-report && cd ../..
cache:
yarn: true
directories:
- npm_modules