Skip to content

Commit

Permalink
ENH: Update to use CircleCI 2.0
Browse files Browse the repository at this point in the history
Change-Id: Ic3880bb5ba0da9572299a4fa66688e5fd36ffab1
  • Loading branch information
blowekamp committed Aug 30, 2017
1 parent ed702da commit 9151b25
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 55 deletions.
45 changes: 45 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
version: 2
jobs:
build:
docker:
- image: circleci/python:2.7
working_directory: ~/
resource_class: large
branches:
ignore:
- gh-pages
- dashboard
- hooks
environment:
CTEST_DASHBOARD_ROOT: /home/circleci
CTEST_SOURCE_DIRECTORY: /home/circleci/ITK
CTEST_BINARY_DIRECTORY: /home/circleci/ITK-build
DASHBOARD_BRANCH_DIRECTORY: /home/circleci/ITK-dashboard
ExternalData_OBJECT_STORES: /home/circleci/.ExternalData
steps:
- checkout:
path : ~/ITK
- run:
name: Cloning dashboard branch
command: |
git clone --single-branch https://github.com/blowekamp/ITK.git -b dashboard ${DASHBOARD_BRANCH_DIRECTORY}
- run:
name: Dependencies
command: |
sudo apt-get install -y rsync ninja-build
sudo pip install --upgrade pip
sudo pip install scikit-ci-addons
ci_addons circle/install_cmake.py 3.7.2
- run: echo 'export DASHBOARD_MODEL=$( [[ "$CIRCLE_BRANCH" = "master" ]] && echo Continuous || echo Experimental )' >> $BASH_ENV
- run:
name: Build and Testing with CTest
environment:
ITK_GLOBAL_DEFAULT_NUMBER_OF_THREAD: 2
CTEST_OUTPUT_ON_FAILURE: 1
CTEST_CONFIGURATION_TYPE: "Release"
PARALLEL_LEVEL: 4
CTEST_CMAKE_GENERATOR: "Ninja"
command: |
mkdir -p ${CTEST_BINARY_DIRECTORY}
ctest -V -Ddashboard_no_clean:BOOL=1 -S "${DASHBOARD_BRANCH_DIRECTORY}/circleci.cmake"
ci_addons ctest_junit_formatter ${CTEST_BINARY_DIRECTORY} > ${CIRCLE_TEST_REPORTS}/CTest/JUnit-${CIRCLE_NODE_INDEX}.xml
55 changes: 0 additions & 55 deletions circle.yml

This file was deleted.

0 comments on commit 9151b25

Please sign in to comment.