riboseinc / retrace

retrace is a versatile security vulnerability / bug discovery tool through monitoring and modifying the behavior of compiled binaries on Linux, OpenBSD/FreeBSD/NetBSD (shared object) and macOS (dynamic library).
Other
60 stars 19 forks source link

Add FreeBSD build for Cirrus #395

Closed kwkwan closed 5 years ago

kwkwan commented 5 years ago

Previously we had a Jenkins job to run FreeBSD builds but we need to migrate to Cirrus. The Jenkins is being decommissioned.

https://cirrus-ci.org/guide/FreeBSD/

Here's the original script:

(Master branch)

#!/bin/bash -x

whoami

export PATH=$PATH:/usr/local/bin

function install_packages() {
  brew update
  brew install openssl
  brew install make
  brew install cmake
  brew install autoconf
  brew install automake
  brew install libtool
  brew install cmocka
  brew install pkg-config
}

mkdir -p deps
export CMOCKA_INSTALL="$(pwd)/deps/cmocka-install"
export CHECKPATCH_INSTALL="$(pwd)/deps/checkpatch-install"
export TRAVIS_PULL_REQUEST="false"
mkdir -p $CMOCKA_INSTALL

install_packages

if [ -d ~/builds/cmocka ]; then
  rm -rf ~/builds/cmocka
fi

./ci/install.sh

ls -alR ${CMOCKA_INSTALL}

ls -alR "~/builds/cmocka-build"

./ci/main.sh

(Pull request)

#!/bin/bash -x

whoami

. ci/env-freebsd.sh
./ci/before_install.sh
./ci/install.sh
./ci/main.sh
pablo-mendoza commented 5 years ago

Fixed by https://github.com/riboseinc/retrace/pull/411