Travis CI pitfalls

Oleg Posyniak · September 26, 2017

During implementation of CI infrastructure having PHP, you may face with different errors and strange behaviours.

Permission denied error

/home/travis/ line 45: ./ Permission denied
The command "./" failed and exited with 126 during .

This error happens if you do not have executable bit on your script

chmod +x should fix this error

Environment variables

To be able to use environment variables in your scripts, you need to click More options -> Settings in Travis interface and add it.

Twitter, Facebook