Here is a portion of my config. (This is the part that is failing on the $OSTYPE call.) the checkout and setup steps work. The error occurs during the run step while running the unit tests.
command: bash .circleci/setup.sh
name: ggd unit tests (Linux)
command: py.test tests/ --duration=0 -v
In the setup step the $OSTYPE environment variable is available. I use it to distinguish between macos and linux. Here is a snippet from my setup.sh script:
if [[ $OSTYPE == darwin* ]]; then
elif [[ $OSTYPE == linux* ]]; then
However, it does not work during the run step.