Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.

Add kcov to images #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add kcov to images #2

wants to merge 1 commit into from

Conversation

RX14
Copy link
Contributor

@RX14 RX14 commented Jun 9, 2017

For coverage support on crystal travis

@jhass
Copy link
Owner

jhass commented Jun 10, 2017

Did you look if there's a PPA or something available? Compiling makes updating either kcov or the base image a bit brittle :/

@RX14
Copy link
Contributor Author

RX14 commented Jun 10, 2017

@jhass why is compiling more brittle than downloading?

And no, there look to be no ppas with the latest release that I saw. Maybe I'm blind.

@jhass
Copy link
Owner

jhass commented Jun 10, 2017

It's more brittle because with a package the maintainer would keep up with any necessary changes to building the project, such as new dependencies, changed invocation of the build commands or patches necessary to support updated dependencies (such as GCC7 for example). Compiling on our own requires doing all that on our own too.

@jhass
Copy link
Owner

jhass commented Jun 10, 2017

Couldn't find any repo either :/ So I'll accept this if it'll really be used by Crystal.

apt-get install -y crystal
apt-get install -y crystal && \
\
git clone https://github.com/SimonKagstrom/kcov /tmp/kcov && \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're only checking out a tag and don't need the repository's entire history, we could instead download and extract a repository tarball:

mkdir /tmp/kcov && cd /tmp/kcov && \
  curl -fSL https://github.com/SimonKagstrom/kcov/archive/v33.tar.gz | \
  tar -xzf - --strip-components=1

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could, but we're deleting the directory anyway so it doesn't affect image size. I'd much prefer using --depth=1 to the extra work of using a tarball.

@ivy
Copy link

ivy commented Jul 12, 2017 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants