In my .travis.yml file I wanna read which issues is the latest at the moment in my issue file
.travis.yml:
env:
global:
- issues=$(cat "issues.txt");
matrix:
include:
- language: bash
script:
- bash linux_mac/magpi-issue-downloader.sh -f $issues-4 -l $issues
as you see, I wanna run the bash script with something like:
- bash linux_mac/magpi-issue-downloader.sh -f 85 -l 89
Travis shows in the console that there is no error, but it was not doing it correctly as you can see in the screenshot
The .travis.yml
is in the same root folder as the issues.txt
file
I fixed it now like this:
env:
global:
- issue=$(<issues.txt)
matrix:
include:
- language: bash
script:
- bash linux_mac/magpi-issue-downloader.sh -f $(($issue - 5)) -l $(($issue))
this worked for me.