Skip to content

Commit baaf9e2

Browse files
committed
Merge remote-tracking branch 'yan12125/test' into ha-feature-osx-builds-cleanup
2 parents 9a219e9 + 581edde commit baaf9e2

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

.travis.yml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
language: python
1+
language: c
22

33
matrix:
44
include:
@@ -8,32 +8,31 @@ matrix:
88
env:
99
- RELEASE=trusty
1010
- sudo: required
11-
env:
12-
- RELEASE=precise
11+
env: RELEASE=precise
1312
- os: osx
1413
osx_image: xcode8.2
15-
env:
16-
- RELEASE=sierra
14+
env: RELEASE=sierra
1715
- os: osx
1816
osx_image: xcode7.3
19-
env:
20-
- RELEASE=sierra
21-
- os: osx
22-
osx_image: xcode6.4
23-
env:
24-
- RELEASE=yosemite
17+
env: RELEASE=elcapitan
2518

2619
env:
2720
global:
2821
- VERSION='3.6-dev'
2922
- ALIAS='nightly'
3023

3124
install:
32-
- pushd /opt/pyenv/
33-
- sudo git checkout master
34-
- sudo git pull
35-
- popd
36-
- python -m pip install virtualenv
25+
- |
26+
if [[ "$(uname)" == "Linux" ]] ; then
27+
pushd /opt/pyenv/
28+
sudo git checkout master
29+
sudo git pull
30+
popd
31+
else
32+
brew uninstall pyenv
33+
brew install pyenv --HEAD
34+
fi
35+
- sudo -H python -m pip install virtualenv --upgrade
3736

3837
before_script:
3938
- 'export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'

bin/compile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,14 @@ function install_numpy() {
2121

2222
set -o xtrace
2323

24-
sudo env PYTHON_BUILD_ROOT=/opt/pyenv/plugins/python-build \
25-
/opt/pyenv/plugins/python-build/bin/python-build $VERSION $INSTALL_DEST/$VERSION
24+
if [[ "$(uname)" == "Linux" ]] ; then
25+
PYENV_ROOT=/opt/pyenv
26+
else
27+
PYENV_ROOT=/usr/local/opt/pyenv
28+
fi
29+
30+
sudo env PYTHON_BUILD_ROOT=$PYENV_ROOT/plugins/python-build \
31+
$PYENV_ROOT/plugins/python-build/bin/python-build $VERSION $INSTALL_DEST/$VERSION
2632

2733
if [[ $ALIAS ]] ; then
2834
rm -f $INSTALL_DEST/$ALIAS

0 commit comments

Comments
 (0)