Skip to content

Commit

Permalink
cirrus: build python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfreyer committed Jan 2, 2019
1 parent 5d6e2b5 commit 97a09ec
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 97a09ec

Please sign in to comment.