Skip to content

Commit 981ab02

Browse files
authored
Merge pull request #63 from KVSlab/update-ci
Change CI from TravisCI to CircleCI
2 parents c793a0a + 4fea179 commit 981ab02

File tree

4 files changed

+60
-57
lines changed

4 files changed

+60
-57
lines changed

.circleci/config.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
version: 2.1
2+
workflows:
3+
version: 2
4+
test:
5+
jobs:
6+
- install-and-test
7+
jobs:
8+
install-and-test:
9+
docker:
10+
- image: cimg/python:3.6
11+
working_directory: ~/repo
12+
steps:
13+
- checkout
14+
- run:
15+
name: Install miniconda
16+
command: |
17+
# Install anaconda
18+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh
19+
bash ~/miniconda.sh -b -p $HOME/miniconda
20+
- run:
21+
name: Setup environment and run tests
22+
command: |
23+
# Export path
24+
export PATH="$HOME/miniconda/bin:$PATH"
25+
hash -r
26+
27+
# Set conda parameters
28+
conda config --set restore_free_channel true
29+
conda config --set always_yes yes --set changeps1 no
30+
conda config --add channels vmtk
31+
conda config --add channels morphman
32+
33+
# Set up environment
34+
conda create -n morphman morphman pytest llvm=3.3
35+
36+
# Activate environment
37+
source activate morphman
38+
39+
# Useful for debugging any issues with conda
40+
conda info -a
41+
42+
# Dependencies for code coverage
43+
pip install pytest-cov codecov
44+
45+
# Edit VMTK files
46+
sed -i -e 's/len(self.SourcePoints)\/3/len\(self.SourcePoints\)\/\/3/g' $HOME/miniconda/envs/morphman/lib/python3.6/site-packages/vmtk/vmtkcenterlines.py
47+
sed -i -e 's/len(self.TargetPoints)\/3/len\(self.TargetPoints\)\/\/3/g' $HOME/miniconda/envs/morphman/lib/python3.6/site-packages/vmtk/vmtkcenterlines.py
48+
sed -i -e 's/(len(values) - 1)\/2/\(len\(values\) - 1\)\/\/2/g' $HOME/miniconda/envs/morphman/lib/python3.6/site-packages/vmtk/vmtksurfacecurvature.py
49+
50+
# Run tests
51+
cd test
52+
pytest --cov=./
53+
54+
# store artifacts (for example logs, binaries, etc)
55+
# to be available in the web app or through the API
56+
- store_artifacts:
57+
path: test-reports
58+

.travis.yml

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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## [morphMan - Morphological Manipulation](https://morphman.readthedocs.io)
22

33
[![Documentation Status](https://readthedocs.org/projects/morphman/badge/?version=latest)](https://morphman.readthedocs.io/en/latest/?badge=latest)
4-
[![Build Status](https://travis-ci.org/KVSlab/morphMan.svg?branch=master)](https://travis-ci.org/KVSlab/morphMan)
4+
[![CircleCI](https://circleci.com/gh/KVSlab/morphMan/tree/master.svg?style=svg)](https://circleci.com/gh/KVSlab/morphMan/tree/master)
55
[![Build status](https://ci.appveyor.com/api/projects/status/2k6q32hqg6g5oopc?svg=true)](https://ci.appveyor.com/project/hkjeldsberg/morphman-s1s38)
66
[![DOI](http://joss.theoj.org/papers/10.21105/joss.01065/status.svg)](https://doi.org/10.21105/joss.01065)
77
[![codecov](https://codecov.io/gh/KVSlab/morphMan/branch/master/graph/badge.svg)](https://codecov.io/gh/KVSlab/morphMan)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import setuptools
22

3-
with open("README.md", "r") as fh:
3+
with open("README.md", "r", encoding="utf-8") as fh:
44
long_description = fh.read()
55

66
DEPENDENCIES = [] # 'scipy', 'numpy', 'vtk']

0 commit comments

Comments
 (0)