Skip to content

Commit

Permalink
persist mix files only when coverage is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
0x777 committed Feb 6, 2020
1 parent d97bf30 commit 8572a5d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions server/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ ci-build:
echo '$(VERSION)' > '$(build_output)/version.txt'
shopt -s failglob globstar && cp $(executables_glob) '$(build_output)/'
# Copy the .mix files needed for `hpc` to generate code coverage reports into the build output
# directory.
mkdir -p '$(build_output)/mix/'
shopt -s failglob globstar && cp -R $(mix_dirs_glob) '$(build_output)/mix/'
# directory, only if coverage is enabled (the mix files aren't generated otherwise).
if [[ -n '$(enable_coverage)' ]]; then \
mkdir -p '$(build_output)/mix/' && \
shopt -s failglob globstar && cp -R $(mix_dirs_glob) '$(build_output)/mix/'; \
fi

# assumes this is built in circleci
ci-image:
Expand Down

0 comments on commit 8572a5d

Please sign in to comment.