Skip to content

Commit fe72aac

Browse files
committed
Add commands to install python on OSX to .travis.yml
1 parent 5a87aa6 commit fe72aac

File tree

1 file changed

+30
-10
lines changed

1 file changed

+30
-10
lines changed

.travis.yml

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,49 @@ language: python
22

33
dist: xenial
44

5+
stages: test
6+
57
python:
68
- "3.6"
79
- "3.7"
810
- "3.8-dev"
911
- "pypy3"
1012

11-
# Unfortunately, travis does not support python on OSX at the moment
12-
#
13-
# os:
14-
# - linux
15-
# - osx
16-
#
17-
# osx_image: xcode12
1813

1914
branches:
2015
only:
2116
- gh-pages
2217
- /.*/
2318

19+
jobs:
20+
include:
21+
stage: test
22+
os: osx
23+
osx_image: xcode12
24+
language: sh
25+
env:
26+
- HOMEBREW_NO_INSTALL_CLEANUP=1
27+
- HOMEBREW_NO_ANALYTICS=1
28+
before_cache: rm -f "$HOME/Library/Caches/pip/log/debug.log"
29+
cache: "$HOME/Library/Caches/pip"
30+
addons:
31+
homebrew:
32+
packages: python3
33+
34+
before_install:
35+
- python3 -m pip install --upgrade virtualenv
36+
- python3 -m pip install coverage
37+
- virtualenv -p python3 --system-site-packages "$HOME/venv"
38+
- source "$HOME/venv/bin/activate"
39+
40+
env:
41+
- LD_LIBRARY_PATH=/usr/local/lib
42+
43+
before_install:
44+
- python3 -m pip install coverage
45+
2446
install:
25-
- pip install coverage
26-
- sh -c 'git clone git://github.com/bitcoin/secp256k1.git libsecp256k1 && cd libsecp256k1 && ./autogen.sh && ./configure && make && sudo make install && cd ..;'
27-
- sh -c 'sudo ln -s /usr/local/lib/libsecp256k1.so.0 /usr/lib/libsecp256k1.so.0'
47+
- sh -c 'git clone git://github.com/bitcoin/secp256k1.git libsecp256k1 && cd libsecp256k1 && ./autogen.sh && ./configure --disable-coverage --disable-benchmark --disable-tests --disable-exhaustive-tests && make && sudo make install && cd ..;'
2848

2949
script:
3050
- "coverage run --append --omit='tests/*,*/site-packages/*,*/distutils/*' setup.py test -q"

0 commit comments

Comments
 (0)