Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
Add basic Circle CI setup
Browse files Browse the repository at this point in the history
Change-Id: I28b7d10557c6b068cb7e9dbb572de6d1009875fc
  • Loading branch information
wesm committed Oct 17, 2016
1 parent 8d08247 commit 3fc6219
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
15 changes: 15 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Configuration initially used from conda-forge/conda-smithy (BSD 3-clause)

machine:
services:
- docker

dependencies:
# Note, we used to use the naive caching of docker images, but found that it was quicker
# just to pull each time. #rollondockercaching
override:
- docker pull condaforge/linux-anvil

test:
override:
- ./scripts/circleci_build.sh
59 changes: 59 additions & 0 deletions scripts/circleci_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env bash

# Configuration initially used from conda-forge/conda-smithy (BSD 3-clause)

ROOT_DIR=$(cd "$(dirname "$0")/.."; pwd;)

docker info

config=$(cat <<CONDARC
channels:
- conda-forge
- defaults # As we need conda-build
show_channel_urls: true
conda-build:
root-dir: /root_dir/build_artefacts
CONDARC
)

REQUIREMENTS="numpy cython cmake boost arrow-cpp pytz python-dateutil"

cat << EOF | docker run -i \
-v ${ROOT_DIR}:/root_dir \
-a stdin -a stdout -a stderr \
condaforge/linux-anvil \
bash || exit $?
export PYTHONUNBUFFERED=1
set -e
echo "$config" > ~/.condarc
# A lock sometimes occurs with incomplete builds. The lock file is stored in build_artefacts.
conda clean --lock
export CONDA_ENV=pandas-test
conda create -y -q -n $CONDA_ENV python=3.5
source activate $CONDA_ENV
conda install --yes --quiet conda-forge-build-setup
source run_conda_forge_build_setup
conda install -y -q $REQUIREMENTS
mkdir test-build
cd test-build
export ARROW_HOME=~/.conda/envs/$CONDA_ENV
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.conda/envs/$CONDA_ENV/lib
cmake /root_dir || exit 1
make -j4 || exit 1
ctest || exit 1
EOF

0 comments on commit 3fc6219

Please sign in to comment.