From 97a09eccf590ad41394e9a3cb48c051dae47e10b Mon Sep 17 00:00:00 2001 From: Fabian Freyer Date: Wed, 2 Jan 2019 05:56:48 +0100 Subject: [PATCH] cirrus: build python bindings --- .cirrus.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.cirrus.yml b/.cirrus.yml index 72d8ee73e..12c186a9d 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -12,3 +12,28 @@ task: build_script: env PATH="$HOME/.cargo/bin:$PATH" cargo build test_script: env PATH="$HOME/.cargo/bin:$PATH" cargo test before_cache_script: rm -rf $CARGO_HOME/registry/index + +task: + freebsd_instance: + matrix: + image: freebsd-12-0-release-amd64 + image: freebsd-11-2-release-amd64 + matrix: + env: + PYTHON: python3.6 + PYTHON_PKG: python36 + PYPREFIX: py36 + env: + PYTHON: python2.7 + PYTHON_PKG: python27 + PYPREFIX: py27 + install_script: | + pkg install -y curl ${PYTHON_PKG} ${PYPREFIX}-pip + ${PYTHON} -m pip install setuptools-rust + curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly + . $HOME/.cargo/env + build_script: | + export PYTHON_SYS_EXECUTABLE=$(which ${PYTHON}) + . $HOME/.cargo/env + cd bindings/python + ${PYTHON} setup.py install