Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
13506a91
Commit
13506a91
authored
Oct 14, 2017
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Travis-CI: Add macOS to build matrix using Miniconda
parent
7f7f7b18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
21 deletions
+60
-21
.travis.yml
.travis.yml
+60
-21
No files found.
.travis.yml
View file @
13506a91
language
:
python
os
:
linux
dist
:
trusty
sudo
:
false
addons
:
apt
:
packages
:
-
gdb
-
python-dbg
-
python3-dbg
cache
:
pip
:
true
directories
:
-
$HOME/.ccache
language
:
python
python
:
-
2.7
-
3.6
...
...
@@ -30,17 +38,67 @@ env:
-
BACKEND=c
-
BACKEND=cpp
matrix
:
include
:
-
os
:
osx
osx_image
:
xcode6.4
env
:
BACKEND=c PY=2
python
:
2
language
:
c
compiler
:
clang
cache
:
false
-
os
:
osx
osx_image
:
xcode6.4
env
:
BACKEND=cpp PY=2
python
:
2
language
:
cpp
compiler
:
clang
cache
:
false
-
os
:
osx
osx_image
:
xcode6.4
env
:
BACKEND=c PY=3
python
:
3
language
:
c
compiler
:
clang
cache
:
false
-
os
:
osx
osx_image
:
xcode6.4
env
:
BACKEND=cpp PY=3
python
:
3
language
:
cpp
compiler
:
clang
cache
:
false
allow_failures
:
-
python
:
pypy
-
python
:
pypy3
-
python
:
3.6-dev
-
python
:
3.7-dev
exclude
:
-
python
:
pypy
env
:
BACKEND=cpp
-
python
:
pypy3
env
:
BACKEND=cpp
branches
:
only
:
-
master
-
release
before_install
:
-
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then # Install Miniconda
curl -s -o miniconda.sh https://repo.continuum.io/miniconda/Miniconda$PY-latest-MacOSX-x86_64.sh;
bash miniconda.sh -b -p $HOME/miniconda && rm miniconda.sh;
export PATH="$HOME/miniconda/bin:$PATH"; hash -r;
#conda install --quiet --yes nomkl --file=test-requirements.txt --file=test-requirements-cpython.txt;
fi
install
:
-
python -c 'import sys; print("Python %s" % (sys.version,))'
-
if [ -n "${TRAVIS_PYTHON_VERSION##*-dev}" -a -n "${TRAVIS_PYTHON_VERSION##2.6*}" ]; then pip install -r test-requirements.txt $( [ -z "${TRAVIS_PYTHON_VERSION##pypy*}" ] || echo " -r test-requirements-cpython.txt" ) ; fi
-
CFLAGS="-O2 -ggdb -Wall -Wextra $(python -c 'import sys; print("-fno-strict-aliasing" if sys.version_info[0] == 2 else "")')" python setup.py build
before_script
:
ccache -s
before_script
:
ccache -s
||
true
script
:
-
PYTHON_DBG="python$( python -c 'import sys; print("%d.%d" % sys.version_info[:2])' )-dbg"
...
...
@@ -48,22 +106,3 @@ script:
-
if [
false
&& "$BACKEND" = "cpp" ]; then pip install pythran; fi
# disabled: needs Pythran > 0.8.1
-
CFLAGS="-O2 -ggdb -Wall -Wextra $(python -c 'import sys; print("-fno-strict-aliasing" if sys.version_info[0] == 2 else "")')" python setup.py build_ext -i
-
CFLAGS="-O0 -ggdb -Wall -Wextra" python runtests.py -vv -x Debugger --backends=$BACKEND -j7
matrix
:
allow_failures
:
-
python
:
pypy
-
python
:
pypy3
-
python
:
3.6-dev
-
python
:
3.7-dev
exclude
:
-
python
:
pypy
env
:
BACKEND=cpp
-
python
:
pypy3
env
:
BACKEND=cpp
addons
:
apt
:
packages
:
-
gdb
-
python-dbg
-
python3-dbg
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment