Skip to content

Commit 3c0702a

Browse files
attempt to add travis CI
1 parent 4e3b7d5 commit 3c0702a

File tree

4 files changed

+49
-14
lines changed

4 files changed

+49
-14
lines changed

.travis.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
matrix:
2+
include:
3+
- name: "Linux-Py2"
4+
os: linux
5+
env:
6+
- MINICONDA=Miniconda2-latest-Linux-x86_64.sh
7+
- PYVER="--python=27"
8+
- name: "Linux-Py3"
9+
os: linux
10+
env:
11+
- MINICONDA=Miniconda3-latest-Linux-x86_64.sh
12+
- PYVER=""
13+
- name: "OsX-Py2"
14+
os: osx
15+
osx_image: xcode8
16+
env:
17+
- MATRIX_EVAL="brew install gcc && CC=gcc-7 && CXX=g++-7"
18+
- MINICONDA=Miniconda3-latest-MacOSX-x86_64.sh
19+
- MACOSX_DEPLOYMENT_TARGET="10.9"
20+
- PYVER="--python=27"
21+
- name: "OsX-Py3"
22+
os: osx
23+
osx_image: xcode8
24+
env:
25+
- MATRIX_EVAL="brew install gcc && CC=gcc-7 && CXX=g++-7"
26+
- MINICONDA=Miniconda3-latest-MacOSX-x86_64.sh
27+
- MACOSX_DEPLOYMENT_TARGET="10.9"
28+
- PYVER=""
29+
30+
install:
31+
- wget https://repo.continuum.io/miniconda/$MINICONDA -O miniconda.sh;
32+
- bash miniconda.sh -b -p $HOME/miniconda
33+
- export PATH="$HOME/miniconda/bin:$PATH"
34+
- hash -r
35+
- conda config --set always_yes yes --set changeps1 no
36+
- conda update -q conda
37+
- conda install conda-build
38+
# Useful for debugging any issues with conda
39+
- conda info -a
40+
- gcc -v
41+
- g++ -v
42+
43+
script:
44+
- conda build -c intel -c conda-forge $PYVER conda-recipe

conda-recipe/bld.bat

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
@rem Remember to activate Intel Compiler, or remoe these two lines to ise Microsoft Visual Studio compiler
22

3-
set CC=icl
4-
set LD=xilink
5-
6-
%PYTHON% setup.py build --force --compiler=intelemw install --old-and-unmanageable
3+
%PYTHON% setup.py build --force install --old-and-unmanageable
74
if errorlevel 1 exit 1

conda-recipe/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# make sure that compiler has been sourced, if necessary
44

55
if [ `uname` == Darwin ]; then
6-
export MACOSX_DEPLOYMENT_TARGET=10.10
6+
export MACOSX_DEPLOYMENT_TARGET=10.9
77
fi
88

9-
CFLAGS="-I$PREFIX/include $CFLAGS" $PYTHON setup.py build --force --compiler=intelem install --old-and-unmanageable
9+
CFLAGS="-I$PREFIX/include $CFLAGS" $PYTHON setup.py build --force install --old-and-unmanageable

conda-recipe/meta.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
{% set version = "1.0.0" %}
1+
{% set version = "1.0dev" %}
22
{% set buildnumber = 0 %}
33

4-
### If you change the iccver here, you must also set the path correctly in build.sh / bld.bat!!!
5-
{% set iccver = "16.0.3" %} [unix or py3k]
6-
{% set iccver = "13.1.5" %} [win and py27]
74

85
package:
96
name: mkl_fft
107
version: {{ version }}
118

129
source:
13-
git_url: http://github.com/IntelPython/mkl_fft
14-
git_tag: v{{version}}
10+
path: ../
1511

1612
build:
1713
number: {{buildnumber}}
@@ -41,13 +37,11 @@ requirements:
4137
- setuptools
4238
- intelpython
4339
- mkl-devel [not nomkl]
44-
- icc_rt
4540
- cython
4641
- numpy x.x
4742
run:
4843
- python
4944
- mkl [not nomkl]
50-
- icc_rt >={{iccver}}
5145
- intelpython
5246
- numpy x.x
5347

0 commit comments

Comments
 (0)