Skip to content

Commit

Permalink
Add FreeBSD task on Cirrus CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zmughal committed Jul 24, 2023
1 parent 91e4886 commit 0814cbb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
freebsd_instance:
image_family: freebsd-13-2

task:
env:
PERL_VERSION: "5.38"
install_script:
- sudo pkg install -y perl$PERL_VERSION
- |
export MYPERL=$( pkg info -l perl$PERL_VERSION | grep -m1 '/usr/local/bin/perl5[0-9.]\+$' )
echo "MYPERL=$MYPERL" >> $CIRRUS_ENV
- $MYPERL -V
- cc -v
- curl -L https://cpanmin.us | $MYPERL - --sudo App::cpanminus local::lib
deps_script:
- eval $( $MYPERL -Mlocal::lib=local )
# Update PPPort
- $MYPERL -S cpanm -nq Devel::PPPort && ( cd Basic/Core && $MYPERL -MDevel::PPPort -e'Devel::PPPort::WriteFile' )
# Configure deps
- $MYPERL -S cpanm -nq ExtUtils::MakeMaker Devel::CheckLib File::Which ExtUtils::Depends Inline::C
# Deps
- $MYPERL -S cpanm -nq --installdeps .
build_script:
- eval $( $MYPERL -Mlocal::lib=local )
- make # -j $( sysctl -n hw.ncpu )
test_script:
- eval $( $MYPERL -Mlocal::lib=local )
- make test

0 comments on commit 0814cbb

Please sign in to comment.