bin/codeclimate
#!/bin/bash
if [[ $1 = 'setup' ]]; then
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
fi
if [[ $1 = 'report' ]]; then
./cc-test-reporter after-build --exit-code $2
fi