Skip to content

Commit a10a00d

Browse files
authored
Merge pull request #33 from thewtex/ci-update
Ci update
2 parents 4c08bd7 + 65eb0f6 commit a10a00d

File tree

5 files changed

+148
-21
lines changed

5 files changed

+148
-21
lines changed

.circleci/config.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
version: 2
2+
jobs:
3+
build-and-test:
4+
working_directory: /ITKMinimalPathExtraction-build
5+
docker:
6+
- image: insighttoolkit/module-ci:latest
7+
steps:
8+
- checkout:
9+
path: /ITKMinimalPathExtraction
10+
- run:
11+
name: Fetch CTest driver script
12+
command: |
13+
curl -L https://raw.githubusercontent.com/InsightSoftwareConsortium/ITK/dashboard/itk_common.cmake -O
14+
- run:
15+
name: Configure CTest script
16+
command: |
17+
SHASNIP=$(echo $CIRCLE_SHA1 | cut -c1-7)
18+
cat > dashboard.cmake << EOF
19+
set(CTEST_SITE "CircleCI")
20+
set(CTEST_BUILD_NAME "External-ITKMinimalPathExtraction-${CIRCLE_BRANCH}-${CIRCLE_BUILD_NUM}-${SHASNIP}")
21+
set(CTEST_BUILD_CONFIGURATION "MinSizeRel")
22+
set(CTEST_CMAKE_GENERATOR "Unix Makefiles")
23+
set(CTEST_BUILD_FLAGS: "-j5")
24+
set(CTEST_SOURCE_DIRECTORY /ITKMinimalPathExtraction)
25+
set(CTEST_BINARY_DIRECTORY /ITKMinimalPathExtraction-build)
26+
set(dashboard_model Experimental)
27+
set(dashboard_no_clean 1)
28+
set(dashboard_cache "
29+
ITK_DIR:PATH=/ITK-build
30+
BUILD_TESTING:BOOL=ON
31+
")
32+
include(\${CTEST_SCRIPT_DIRECTORY}/itk_common.cmake)
33+
EOF
34+
- run:
35+
name: Build and Test
36+
no_output_timeout: 1.0h
37+
command: |
38+
ctest -j 2 -VV -S dashboard.cmake
39+
package:
40+
working_directory: ~/ITKMinimalPathExtraction
41+
machine: true
42+
steps:
43+
- checkout
44+
- run:
45+
name: Fetch build script
46+
command: |
47+
curl -L https://rawgit.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/dockcross-manylinux-download-cache-and-build-module-wheels.sh -O
48+
chmod u+x dockcross-manylinux-download-cache-and-build-module-wheels.sh
49+
- run:
50+
name: Build Python packages
51+
no_output_timeout: 1.0h
52+
command: |
53+
./dockcross-manylinux-download-cache-and-build-module-wheels.sh
54+
- store_artifacts:
55+
path: dist
56+
destination: dist
57+
58+
workflows:
59+
version: 2
60+
build-test-package:
61+
jobs:
62+
- build-and-test
63+
- package

.travis.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
sudo: true
2+
language: cpp
3+
os:
4+
- osx
5+
compiler:
6+
- gcc
7+
cache:
8+
directories:
9+
- "$HOME/Library/Caches/Homebrew"
10+
script:
11+
- curl -L https://rawgit.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/macpython-download-cache-and-build-module-wheels.sh -O
12+
- chmod u+x macpython-download-cache-and-build-module-wheels.sh
13+
- ./macpython-download-cache-and-build-module-wheels.sh
14+
- tar -zcvf dist.tar.gz dist/
15+
- curl -F file="@dist.tar.gz" https://file.io

appveyor.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
branches:
2+
only:
3+
- master
4+
5+
version: "0.0.1.{build}"
6+
7+
install:
8+
9+
- curl -L https://rawgit.com/InsightSoftwareConsortium/ITKPythonPackage/master/scripts/windows-download-cache-and-build-module-wheels.ps1 -O
10+
- ps: .\windows-download-cache-and-build-module-wheels.ps1
11+
12+
build: off
13+
14+
test: off
15+
16+
artifacts:
17+
18+
# pushing entire folder as a zip archive
19+
- path: dist\*
20+
21+
deploy: off

circle.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

setup.py

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# -*- coding: utf-8 -*-
2+
from __future__ import print_function
3+
from os import sys
4+
5+
try:
6+
from skbuild import setup
7+
except ImportError:
8+
print('scikit-build is required to build from source.', file=sys.stderr)
9+
print('Please run:', file=sys.stderr)
10+
print('', file=sys.stderr)
11+
print(' python -m pip install scikit-build')
12+
sys.exit(1)
13+
14+
setup(
15+
name='itk-minimalpathextraction',
16+
version='0.1.0',
17+
author='Insight Software Consortium',
18+
author_email='[email protected]',
19+
packages=['itk'],
20+
package_dir={'itk': 'itk'},
21+
download_url=r'https://github.com/InsightSoftwareConsortium/ITKMinimalPathExtraction',
22+
description=r'A minimal path extraction framework based on Fast Marching arrival functions.',
23+
long_description='ITK is an open-source, cross-platform library that provides developers with an extensive suite of software tools for image analysis. Developed through extreme programming methodologies, ITK employs leading-edge algorithms for registering and segmenting multidimensional scientific images. This is an extension module for ITK based on Mueller, D. "Fast Marching Minimal Path Extraction in ITK", http://hdl.handle.net/1926/1332 ',
24+
classifiers=[
25+
"License :: OSI Approved :: Apache Software License",
26+
"Programming Language :: Python",
27+
"Programming Language :: C++",
28+
"Development Status :: 4 - Beta",
29+
"Intended Audience :: Developers",
30+
"Intended Audience :: Education",
31+
"Intended Audience :: Healthcare Industry",
32+
"Intended Audience :: Science/Research",
33+
"Topic :: Scientific/Engineering",
34+
"Topic :: Scientific/Engineering :: Medical Science Apps.",
35+
"Topic :: Scientific/Engineering :: Information Analysis",
36+
"Topic :: Software Development :: Libraries",
37+
"Operating System :: Android",
38+
"Operating System :: Microsoft :: Windows",
39+
"Operating System :: POSIX",
40+
"Operating System :: Unix",
41+
"Operating System :: MacOS"
42+
],
43+
license='Apache',
44+
keywords='ITK InsightToolkit',
45+
url=r'https://itk.org/',
46+
install_requires=[
47+
r'itk'
48+
]
49+
)

0 commit comments

Comments
 (0)