File tree Expand file tree Collapse file tree 2 files changed +23
-18
lines changed Expand file tree Collapse file tree 2 files changed +23
-18
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 :
@@ -8,32 +8,31 @@ matrix:
8
8
env :
9
9
- RELEASE=trusty
10
10
- sudo : required
11
- env :
12
- - RELEASE=precise
11
+ env : RELEASE=precise
13
12
- os : osx
14
13
osx_image : xcode8.2
15
- env :
16
- - RELEASE=sierra
14
+ env : RELEASE=sierra
17
15
- os : osx
18
16
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
25
18
26
19
env :
27
20
global :
28
21
- VERSION='3.6-dev'
29
22
- ALIAS='nightly'
30
23
31
24
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
37
36
38
37
before_script :
39
38
- ' 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