#!/bin/bash

set -ex

cip sudo apt-get update
cip sudo apt-get install libffi-dev
cip exec cpanm -n version

if [ "$CIP_TAG" == "5.34" ]; then
  cip exec cpanm -n forks
fi

if [[ "$CIP_TAG" =~ ^5\.[0-9]+-debug(32)?$ ]]; then
  cip exec cpanm -n Test::LeakTrace
fi