Skip to content

Commit 677bae1

Browse files
authored
Merge pull request #12 from Fluorescence-Tools/development
CI for Windows platform through Appveyor
2 parents a460241 + 01b3ee0 commit 677bae1

File tree

5 files changed

+63
-3
lines changed

5 files changed

+63
-3
lines changed

.appveyor.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
platform:
2+
- amd64
3+
image: Visual Studio 2017
4+
5+
environment:
6+
matrix:
7+
- PYTHON: "C:\\Miniconda3-x64"
8+
9+
# For debugging uncomment the lines below
10+
#init:
11+
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
12+
13+
install:
14+
- cd %APPVEYOR_BUILD_FOLDER%
15+
- git submodule update --init --recursive
16+
- "SET PATH=%PYTHON%;%PYTHON%\\Scripts;%PATH%"
17+
- conda config --set always_yes yes --set changeps1 no
18+
- conda env create -f environment.yaml
19+
- activate labellib
20+
- python setup.py install
21+
22+
build: off
23+
24+
# For debugging uncomment the lines below
25+
#on_finish:
26+
# - ps: $blockRdp = $true; iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
27+
28+
#test_script:
29+
# - conda install nose coverage
30+
# - cmd: echo %CD%
31+
# - cmd: cd C:\projects\tttrlib\test\
32+
# - cmd: echo %CD%
33+
# - nosetests
34+
35+
notifications:
36+
- provider: Email
37+
to:
38+
- thomas.otavio.peulen@gmail.com
39+
- mykola.dimura@gmail.com
40+
on_build_success: false
41+
on_build_failure: true
42+
on_build_status_changed: false

.travis.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ addons:
2727
- clang
2828
install:
2929
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install md5sha1sum && pyenv install -s 3.7-dev; fi
30-
#- source devtools/travis-ci/install_miniconda.sh
31-
#- conda config --add channels omnia
32-
#- conda config --add channels conda-forge # hightest priority
3330
script:
3431
- pyenv global `pyenv versions | grep "^ *$PYTHON" | head -n1`
3532
- mkdir build && cd build

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.0.2)
33
set(CMAKE_CXX_STANDARD 11)
44
if(MSVC)
55
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /std:c++11")
6+
if(BIT MATCHES "64")
7+
add_definitions(-DMS_WIN64)
8+
endif(BIT MATCHES "64")
69
endif(MSVC)
710

811
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# LabelLib
22
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/2855c47992414fb2b9622309897f7621)](https://app.codacy.com/app/tpeulen/LabelLib?utm_source=github.com&utm_medium=referral&utm_content=Fluorescence-Tools/LabelLib&utm_campaign=Badge_Grade_Dashboard)
33
[![Linux Build Status](https://travis-ci.org/Fluorescence-Tools/LabelLib.svg?branch=master)](https://travis-ci.org/Fluorescence-Tools/LabelLib)
4+
[![Build status](https://ci.appveyor.com/api/projects/status/5c79no7qrityviem/branch/master?svg=true)](https://ci.appveyor.com/project/tpeulen/labellib-wu0kt/branch/master)
45
[![PyPI Version](https://badge.fury.io/py/LabelLib.svg)](https://pypi.org/project/LabelLib)
56
[![Anaconda-Server Version](https://anaconda.org/tpeulen/labellib/badges/version.svg)](https://anaconda.org/tpeulen/labellib)
67
[![Anaconda-Server Downloads](https://anaconda.org/tpeulen/labellib/badges/downloads.svg)](https://anaconda.org/tpeulen/labellib)

environment.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: labellib
2+
3+
channels:
4+
- fluorescence-tools
5+
- tpeulen
6+
- conda-forge
7+
- defaults
8+
9+
dependencies:
10+
- cmake
11+
- eigen
12+
- pybind11
13+
- setuptools
14+
- numpy >=1.10
15+
- libcxx
16+
- python=3.7
17+
- setuptools

0 commit comments

Comments
 (0)