|
| 1 | +# Oldest OS X image in TravisCi at the moment is 10.10 Yosemite |
1 | 2 | os: osx |
2 | | -osx_image: beta-xcode6.1 |
| 3 | +osx_image: xcode6.4 |
3 | 4 | language: node_js |
4 | 5 | node_js: '6' |
5 | 6 |
|
6 | 7 | before_install: |
7 | 8 | # OS extra info |
8 | 9 | - sw_vers |
9 | 10 | - uname -a |
10 | | - - python --version |
11 | | - - python -c "import struct; print(struct.calcsize('P') * 8)" |
12 | 11 |
|
13 | | - # Install Python 2 and 3 with pip and check versions |
| 12 | + # Install Python 2 pip, ensure pip installed packages are found first |
| 13 | + # Python 2 installation and path priority in Travis OS X is a bit of a mess |
| 14 | + # https://github.com/travis-ci/travis-ci/issues/4194 |
| 15 | + - curl -O https://bootstrap.pypa.io/get-pip.py |
| 16 | + - sudo python get-pip.py |
| 17 | + - rm get-pip.py |
| 18 | + - sudo pip install --upgrade pip setuptools wheel |
| 19 | + # Original problem is old version of "six" package lingering around |
| 20 | + # https://github.com/testing-cabal/mock/issues/337 |
| 21 | + - export PYTHONPATH=/Library/Python/2.7/site-packages:$PYTHONPATH |
| 22 | + - python -c "import sys; print(sys.path)" |
| 23 | + - python -c "from six import wraps" |
| 24 | + |
| 25 | + # Install Python 3.5 with pip, and check versions |
14 | 26 | - brew update |
15 | | - - brew install python |
16 | | - - brew unlink python && brew link python |
17 | | - - brew install python3 |
18 | | - - brew unlink python3 && brew link python3 |
| 27 | + - brew tap zoidbergwill/python |
| 28 | + - brew install python35 |
| 29 | + - cp -R /usr/local/bin/pip3.5 /usr/local/bin/pip3 |
| 30 | + - sudo pip3 install --upgrade pip |
| 31 | + |
19 | 32 | - brew install libcouchbase |
20 | 33 | - PATH=/usr/local/bin:$PATH |
21 | 34 | - echo $PATH |
| 35 | + |
| 36 | + # Install Python packages (built with Python 3, tests for 2 and 3) |
| 37 | + - sudo python -m pip install mock |
| 38 | + - pip3 install mkdocs |
| 39 | + - pip3 install pyinstaller |
| 40 | + |
| 41 | + # Check Python, pip and package versions |
| 42 | + - python -c "import sys; print(sys.executable)" |
22 | 43 | - python --version |
23 | 44 | - python -c "import struct; print(struct.calcsize('P') * 8)" |
24 | | - - pip --version |
| 45 | + - python -m pip --version |
| 46 | + - python -m pip freeze |
| 47 | + - python3 -c "import sys; print(sys.executable)" |
25 | 48 | - python3 --version |
26 | 49 | - python3 -c "import struct; print(struct.calcsize('P') * 8)" |
27 | 50 | - pip3 --version |
28 | | - |
29 | | - # Install Python packages (built with Python 3, tests for 2 and 3) |
30 | | - - pip install mock |
31 | | - - pip3 install mkdocs |
32 | | - - pip3 install pyinstaller |
33 | | - - pyinstaller --version |
34 | | - - pip freeze |
35 | 51 | - pip3 freeze |
| 52 | + - pyinstaller --version |
36 | 53 |
|
37 | 54 | # Travis make takes > 10 minutes, so need to increase wait |
38 | 55 | - brew unlink node |
|
0 commit comments