Skip to content

Commit

Permalink
Install Perl environment on CircleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelhorne committed Aug 28, 2024
1 parent e9fd808 commit 65318c0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,34 @@ jobs:
test:
docker:
- image: cimg/base:stable

steps:
- checkout
# Replace this with a real test runner invocation
- run:
name: Install Perl
command: |
sudo apt-get update && \
sudo apt-get upgrade && \
sudo apt-get install --assume-yes --quiet \
--no-install-suggests --no-install-recommends \
perl cpanminus
- run:
name: Perl version
command: perl --version
- run:
name: App::cpanminus version
command: cpanm --version
- run:
name: Configure local Perl lib path
command: |
cpanm --local-lib=~/perl5 local::lib && \
eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib) && \
echo 'export PERL5LIB=/home/atom/perl5/lib/perl5' >> $BASH_ENV && \
echo 'export PERL_LOCAL_LIB_ROOT=/home/atom/perl5' >> $BASH_ENV && \
echo 'export PERL_MB_OPT="--install_base \"/home/atom/perl5\""' >> $BASH_ENV && \
echo 'export PERL_MM_OPT=INSTALL_BASE=/home/atom/perl5' >> $BASH_ENV && \
echo 'export PATH="/home/atom/perl5/bin:$PATH"' >> $BASH_ENV
- run:
name: Run tests
# command: echo 'replace me with real tests!' && false
Expand Down

0 comments on commit 65318c0

Please sign in to comment.