File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -46,21 +46,26 @@ jobs:
46
46
pushd metacpan-docker
47
47
./src/metacpan-api/wait-for-es.sh http://localhost:9200 elasticsearch_test --
48
48
name : wait for ES
49
+ # We are running coverage inside the container, but creating the report
50
+ # from outside of the container, so Devel::Cover is installed twice. We
51
+ # are relying on environment variables from the host to be available when
52
+ # we publish the report, so we publish from the host rather than trying
53
+ # to propagate env variables to the container. There is a CircleCI orb
54
+ # that can publish the report for us, but it is hard to debug. I had to
55
+ # set up the following config in order to debug the orb, so we may as
56
+ # well keep it around for now.
49
57
- run :
50
58
command : |
51
59
pushd metacpan-docker
52
- docker-compose exec -T api_test cpm install -g Devel::Cover Devel::Cover::Report::Codecov Devel::Cover::Report::Codecovbash
60
+ docker-compose exec -T api_test cpm install -g Devel::Cover
53
61
name : install Devel::Cover
54
62
- run :
55
63
command : |
56
64
pushd metacpan-docker
57
65
docker-compose exec -T api_test env HARNESS_PERL_SWITCHES="-MDevel::Cover=+ignore,^t/|^test-data/|^etc/" prove -lr --jobs 2 t
58
66
name : run tests with coverage
59
- - run :
60
- command : |
61
- pushd metacpan-docker
62
- docker-compose exec -T api_test cover
63
- name : generate coverage report
67
+ # The report ends up being owned by root. We need to chown it so that
68
+ # the cover command can make changes to it.
64
69
- run :
65
70
command : |
66
71
pushd metacpan-docker/src/metacpan-api
You can’t perform that action at this time.
0 commit comments