Skip to content

Commit

Permalink
Add codecov support to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
RX14 committed Aug 20, 2017
1 parent dbd0309 commit 8cd1acb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ script:
- bin/ci build
after_success:
- bin/ci deploy
- bash <(curl -s https://codecov.io/bash) -s .build/coverage
branches:
only:
- master
Expand Down
10 changes: 7 additions & 3 deletions bin/ci
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,11 @@ prepare_system() {

build() {
with_build_env 'make std_spec clean'
with_build_env 'make crystal std_spec compiler_spec doc'

with_build_env 'make crystal doc'
on_linux with_build_env 'make std_spec compiler_spec coverage_output=.build/coverage'
on_osx with_build_env 'make spec'

with_build_env 'find samples -name "*.cr" | xargs -L 1 ./bin/crystal build --no-codegen'
with_build_env './bin/crystal tool format --check samples spec src'
}
Expand Down Expand Up @@ -147,7 +151,7 @@ EOF
prepare_build() {
on_linux verify_linux_environment

on_linux docker pull "jhass/crystal-build-$ARCH"
on_linux docker pull "rx14/crystal-build-$ARCH"

on_osx brew install llvm crystal-lang
}
Expand All @@ -166,7 +170,7 @@ with_build_env() {
-w /mnt \
-e LIBRARY_PATH="/opt/crystal/embedded/lib/" \
-e CRYSTAL_CACHE_DIR="/tmp/crystal" \
"jhass/crystal-build-$ARCH" \
"rx14/crystal-build-$ARCH" \
"$ARCH_CMD" /bin/bash -c "'$command'"

on_osx PATH="/usr/local/opt/llvm/bin:\$PATH" \
Expand Down

0 comments on commit 8cd1acb

Please sign in to comment.