Skip to content

Commit 414fb54

Browse files
committed
Add a CircleCI build config.
1 parent 3a72b3f commit 414fb54

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.circleci/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: 2
2+
3+
jobs:
4+
build:
5+
docker:
6+
- image: milaudem/libgpuarray:0
7+
8+
steps:
9+
- checkout
10+
- run:
11+
name: "Checkout Merge Commit"
12+
command: |
13+
if [[ -n "${CIRCLE_PR_NUMBER}" ]]
14+
then
15+
git fetch -u origin "+refs/pull/${CIRCLE_PR_NUMBER}/merge:pr/${CIRCLE_PR_NUMBER}/merge"
16+
git checkout -qf "pr/${CIRCLE_PR_NUMBER}/merge"
17+
fi
18+
- run:
19+
name: "Build Recipe"
20+
command: |
21+
export GPUARRAY_VERSION=`python -c 'import versioneer; print(versioneer.get_version())'`
22+
conda build --python 2.7 conda
23+
conda build --python 3.5 conda/pygpu
24+
conda build --python 3.6 conda/pygpu
25+
- run:
26+
name: "Upload Tagged Versions"
27+
command: |
28+
if [[ -n "${CIRCLE_TAG}" ]]
29+
then
30+
anaconda -t $BINSTAR_TOKEN upload --user=mila-udem /miniconda/conda-bld/linux-64/libgpuarray*
31+
anaconda -t $BINSTAR_TOKEN upload --user=mila-udem /miniconda/conda-bld/linux-64/pygpu*
32+
fi
33+
- store_artifacts:
34+
path: /miniconda/conda-bld/linux-64

0 commit comments

Comments
 (0)