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 d64359b
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
freebsd_instance:
image_family: freebsd-13-2
cpu: 2
memory: 2G

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
1 change: 1 addition & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,7 @@ subdirs

^README\.md
^\.github/
^\.cirrus.yml
^Example/Benchmark/\.git

^cover_db/
Expand Down

0 comments on commit d64359b

Please sign in to comment.