Skip to content

Instantly share code, notes, and snippets.

@hanneskaeufler
Created February 24, 2019 16:36
Show Gist options
  • Save hanneskaeufler/bfcc0564fe24753a7d299750078d88eb to your computer and use it in GitHub Desktop.
Save hanneskaeufler/bfcc0564fe24753a7d299750078d88eb to your computer and use it in GitHub Desktop.
Script for generating and uploading code coverage
#!/usr/bin/env bash
echo "require \"./spec/**\"" > run_tests.cr && \
crystal build run_tests.cr -D skip-integration && \
kcov --clean --include-path=$(pwd)/src $(pwd)/coverage ./run_tests && \
bash <(curl -s https://codecov.io/bash) -s $(pwd)/coverage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment