Skip to content
This repository has been archived by the owner on Feb 11, 2023. It is now read-only.

Commit

Permalink
update CI
Browse files Browse the repository at this point in the history
* split CircleCI tests
* drop Shippable
* add xOS to Travis
* reduce Appveyor tests
* try LFS - it works against open-source
  • Loading branch information
Borda committed Oct 28, 2019
1 parent 8274fe0 commit b02a512
Show file tree
Hide file tree
Showing 7 changed files with 85 additions and 81 deletions.
4 changes: 3 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.ipynb linguist-vendored
*.ipynb linguist-vendored
# *.png filter=lfs diff=lfs merge=lfs -text
# *.jpg filter=lfs diff=lfs merge=lfs -text
45 changes: 0 additions & 45 deletions .shippable.yml

This file was deleted.

43 changes: 35 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
# this file is *not* meant to cover or endorse the use of travis, but rather to
# help confirm pull requests to this project.

dist: xenial # Ubuntu 16.04

env:
global:
- DISPLAY=""
Expand All @@ -18,23 +16,52 @@ language: python

matrix:
include:
- python: 2.7
- os: osx
osx_image: xcode9.4
language: generic
env: TOXENV=py36
addons:
homebrew:
# update: true
packages: python3.6
before_install:
# - brew update && brew install git-lfs
- pip3 install virtualenv
- virtualenv -p python3 ~/venv
- source ~/venv/bin/activate
#before_script:
# - git lfs install
# - git lfs pull
- os: linux
python: 2.7
dist: xenial # Ubuntu 16.04
env: TOXENV=py27
- python: 3.5
- os: linux
python: 3.5
dist: xenial # Ubuntu 16.04
env: TOXENV=py35
- python: 3.6
- os: linux
python: 3.6
dist: bionic # Ubuntu 18.04
env: TOXENV=py36
- python: 3.7
- os: linux
python: 3.7
dist: bionic # Ubuntu 18.04
env: TOXENV=py37

# See http://docs.travis-ci.com/user/caching/#pip-cache
cache: pip

before_install:
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew install openslide ;
else
sudo apt-get install openslide-tools ;
fi

install:
- sudo apt-get install openslide-tools
- pip install -r requirements.txt
- pip install -r ./tests/requirements.txt
- pip install tox
- pip --version ; pip list

script:
Expand Down
24 changes: 12 additions & 12 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ environment:
# a later point release.
# See: http://www.appveyor.com/docs/installed-software#python

- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "32"
TOXENV: "py27"
#- PYTHON: "C:\\Python27"
# PYTHON_VERSION: "2.7.x"
# PYTHON_ARCH: "32"
# TOXENV: "py27"

- PYTHON: "C:\\Python27-x64"
PYTHON_VERSION: "2.7.x"
PYTHON_ARCH: "64"
TOXENV: "py27"

- PYTHON: "C:\\Python35"
PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "32"
TOXENV: "py35"
#- PYTHON: "C:\\Python35"
# PYTHON_VERSION: "3.5.x"
# PYTHON_ARCH: "32"
# TOXENV: "py35"

- PYTHON: "C:\\Python35-x64"
PYTHON_VERSION: "3.5.x"
PYTHON_ARCH: "64"
TOXENV: "py35"
#- PYTHON: "C:\\Python35-x64"
# PYTHON_VERSION: "3.5.x"
# PYTHON_ARCH: "64"
# TOXENV: "py35"

- PYTHON: "C:\\Python36-x64"
PYTHON_VERSION: "3.6.x"
Expand Down
45 changes: 32 additions & 13 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ references:
run:
name: Install Packages
command: |
sudo apt-get update
sudo apt-get update -qq
# sudo apt-get install git-lfs
sudo apt-get install tk-dev pkg-config python-dev python-tk tree
sudo apt-get install openslide-tools
Expand Down Expand Up @@ -91,23 +92,19 @@ references:
jobs:

Py2:
Py3-Tests:
docker:
- image: circleci/python:2.7
steps: &steps
- image: circleci/python:3.6
steps: &steps_tests
- checkout
# INSTALLATION
- *install_deps
#- run: git lfs pull
- *install_pips
# TESTING
- *test_coverage
# DOCUMENTATION
- *make_docs
# EXPERIMENTS
- *run_dataset
- *run_experiment
- *run_bUnwarpJ
- *run_RVSS

# PASSING
- run:
Expand All @@ -121,15 +118,37 @@ jobs:
- store_artifacts:
path: test-reports

Py3:
Py3-Experiments:
docker:
- image: circleci/python:3.6
steps: *steps
steps: &steps_expts
- checkout
# INSTALLATION
- *install_deps
#- run: git lfs pull
- *install_pips
# EXPERIMENTS
- *run_dataset
- *run_experiment
- *run_bUnwarpJ
- *run_RVSS

Py2-Tests:
docker:
- image: circleci/python:2.7
steps: *steps_tests

Py2-Experiments:
docker:
- image: circleci/python:2.7
steps: *steps_expts


workflows:
version: 2
build:
jobs:
- Py2
- Py3
- Py2-Tests
- Py3-Tests
- Py2-Experiments
- Py3-Experiments
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy>=1.8.2,<1.16.0 # version 1.16 breaks skimage 0.14
numpy>=1.8.2
scipy>=0.10.0
pandas>=0.17.1
six>=1.7.3
Expand Down
3 changes: 2 additions & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ pytest-cov
flake8
check-manifest
codacy-coverage
parameterized
parameterized
tox

0 comments on commit b02a512

Please sign in to comment.