-
Notifications
You must be signed in to change notification settings - Fork 1
/
circle.yml
31 lines (29 loc) · 981 Bytes
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
machine:
environment:
# Path
PATH: "$PATH:/home/$USER/perl5/bin"
# cpanm - Install destination of libraries
PERL_CPANM_OPT: "--local-lib=/home/$USER/perl5"
# perl - Include path
PERL5LIB: "/home/$USER/perl5/lib/perl5:$PERL5LIB"
dependencies:
cache_directories:
- ~/perl5
- local
pre:
# Install the cpanm (cpanminus) command
- curl -L https://cpanmin.us | perl - App::cpanminus
# Install the carton command using cpanm
- cpanm Carton
override:
# Install the dependency cpan modules using cpanfile
- carton install
test:
override:
# Run the tests
- carton exec -- prove -l -m -Q -r t/ --formatter=TAP::Formatter::JUnit> result.xml
# Convert charset of the test results
# Thanks for http://qiita.com/uchiko/items/65254be5e9504c9c1742
- perl -i -ple 's/\[\\x([a-f0-9]{2})\]/pack("H*", $1)/egx' result.xml
# Copy the test results to Circle-CI Artifacts
- cp result.xml $CIRCLE_TEST_REPORTS