File tree Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Expand file tree Collapse file tree 2 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 1
- language : python
1
+ language : c
2
2
3
3
matrix :
4
4
include :
@@ -7,18 +7,30 @@ matrix:
7
7
env : RELEASE=trusty
8
8
- sudo : required
9
9
env : RELEASE=precise
10
+ - os : osx
11
+ osx_image : xcode8.2
12
+ env : RELEASE=sierra
13
+ - os : osx
14
+ osx_image : xcode7.3
15
+ env : RELEASE=elcapitan
10
16
11
17
env :
12
18
global :
13
19
- VERSION='3.7-dev'
14
20
- ALIAS=nightly
15
21
16
22
install :
17
- - pushd /opt/pyenv/
18
- - sudo git checkout master
19
- - sudo git pull
20
- - popd
21
- - python -m pip install virtualenv
23
+ - |
24
+ if [[ "$(uname)" == "Linux" ]] ; then
25
+ pushd /opt/pyenv/
26
+ sudo git checkout master
27
+ sudo git pull
28
+ popd
29
+ else
30
+ brew uninstall pyenv
31
+ brew install pyenv --HEAD
32
+ fi
33
+ - sudo -H python -m pip install virtualenv --upgrade
22
34
23
35
before_script :
24
36
- ' export INSTALL_DEST=${INSTALL_DEST:-/opt/python}'
Original file line number Diff line number Diff line change @@ -21,8 +21,14 @@ function install_numpy() {
21
21
22
22
set -o xtrace
23
23
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
26
32
27
33
if [[ $ALIAS ]] ; then
28
34
rm -f $INSTALL_DEST /$ALIAS
You can’t perform that action at this time.
0 commit comments