Skip to content

Commit

Permalink
use 2 jobs for building and testing
Browse files Browse the repository at this point in the history
  • Loading branch information
marscher committed Jun 19, 2018
1 parent b585bf2 commit a0ad728
Showing 1 changed file with 34 additions and 8 deletions.
42 changes: 34 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
version: 2
jobs:
build:
"conda_build":
working_directory: ~/markovmodel/PyEMMA
parallelism: 1
environment:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
PYTHONHASHSEED: 0
OMP_NUM_THREADS: 1
PYEMMA_NJOBS: 1
docker:
- image: continuumio/miniconda3

Expand All @@ -21,9 +15,34 @@ jobs:
- run: git fetch --unshallow || true
- run: conda config --add channels conda-forge
- run: conda config --set always_yes true
- run: conda config --set quiet true
- run: conda install conda-build
- run: conda build devtools/conda-recipe --python=3.6
- run: conda build devtools/conda-recipe --python=3.6 --no-test
- store_artifacts:
path: `conda build devtools/conda-recipe --python=3.6 --output`
destination: build.tar.bz2

"test":
working_directory: ~/markovmodel/PyEMMA
parallelism: 4
environment:
CIRCLE_ARTIFACTS: /tmp/circleci-artifacts
CIRCLE_TEST_REPORTS: /tmp/circleci-test-results
PYTHONHASHSEED: 0
OMP_NUM_THREADS: 1
PYEMMA_NJOBS: 1
docker:
- image: continuumio/miniconda3

steps:
- checkout
- run: conda config --add channels conda-forge
- run: conda config --set always_yes true
- run: conda config --set quiet true
- run: conda install conda-build
- run: wget https://circleci.com/api/v1.1/project/:vcs-type/:org/:repo/:build_num/artifacts/0/build.tar.bz2 -o `conda build devtools/conda-recipe --python=3.6 --output`
#- run: wget curl https://circleci.com/api/v1.1/project/:git/:CIRCLE_PROJECT_USERNAME/:$CIRCLE_PROJECT_REPONAME/:$CIRCLE_BUILD_NUM/artifacts?circle-token=$CIRCLE_TOKEN
- run: conda build devtools/conda-recipe --python=3.6 --test
# Teardown
# If you break your build into multiple jobs with workflows, you will probably want to do the parts of this that are relevant in each
# Save test results
Expand All @@ -34,3 +53,10 @@ jobs:
path: /tmp/circleci-artifacts
- store_artifacts:
path: /tmp/circleci-test-results

workflows:
version: 2
build:
jobs:
- build
- test

0 comments on commit a0ad728

Please sign in to comment.