File tree Expand file tree Collapse file tree 3 files changed +65
-29
lines changed Expand file tree Collapse file tree 3 files changed +65
-29
lines changed Original file line number Diff line number Diff line change @@ -2,48 +2,63 @@ language: ruby
2
2
3
3
os : linux
4
4
5
- dist : trusty
5
+ dist : bionic
6
6
sudo : required
7
7
8
8
rvm :
9
9
- ruby-head
10
- - 2.5.0
11
- - 2.4.3
12
- - 2.3.5
10
+ - 2.6
11
+ - 2.5
12
+ - 2.4
13
13
14
14
env :
15
15
global :
16
16
- PYCALL_DEBUG_FIND_LIBPYTHON=1
17
17
matrix :
18
- - PYENV_VERSION=2.7.13
19
- - PYENV_VERSION=3.6.2
20
- - PYENV_VERSION=system LIBPYTHON=versions/3.6.2/lib/libpython3.6m.so
21
- - PYENV_VERSION=miniconda2-4.1.11
22
- - PYENV_VERSION=miniconda3-4.3.11
18
+ - PYENV_VERSION=3.8.0
19
+ - PYENV_VERSION=3.7.5
20
+ - PYENV_VERSION=2.7.17
21
+ - PYENV_VERSION=system LIBPYTHON=/usr/lib/x86_64-linux-gnu/libpython3.6m.so
22
+ - PYENV_VERSION=system LIBPYTHON=/usr/lib/x86_64-linux-gnu/libpython2.7.so
23
+ - PYENV_VERSION=miniconda2-4.3.30
24
+ - PYENV_VERSION=miniconda3-4.3.30
23
25
24
26
matrix :
25
27
include :
26
28
- os : osx
27
- osx_image : xcode9
29
+ osx_image : xcode11.2
28
30
compiler : clang
29
- rvm : 2.4.1
30
- env : PYENV_VERSION=3.6.2
31
+ rvm : 2.6
32
+ env : PYENV_VERSION=3.8.0
31
33
- os : osx
32
- osx_image : xcode9
34
+ osx_image : xcode11.2
33
35
compiler : clang
34
- rvm : 2.4.1
35
- env : PYENV_VERSION=system LIBPYTHON=versions/3.6.2/lib/libpython3.6m.so
36
+ rvm : 2.5
37
+ env : PYENV_VERSION=3.8.0
36
38
- os : osx
37
- osx_image : xcode9
39
+ osx_image : xcode11.2
38
40
compiler : clang
39
- rvm : 2.4.1
41
+ rvm : 2.4
42
+ env : PYENV_VERSION=3.8.0
43
+ - os : osx
44
+ osx_image : xcode11.2
45
+ compiler : clang
46
+ rvm : 2.6
47
+ env : PYENV_VERSION=miniconda3-4.3.11
48
+ - os : osx
49
+ osx_image : xcode11.2
50
+ compiler : clang
51
+ rvm : 2.5
52
+ env : PYENV_VERSION=miniconda3-4.3.11
53
+ - os : osx
54
+ osx_image : xcode11.2
55
+ compiler : clang
56
+ rvm : 2.4
40
57
env : PYENV_VERSION=miniconda3-4.3.11
41
58
allow_failures :
42
59
- os : osx
43
60
44
61
before_install :
45
- - gem update --system
46
- - gem update bundler
47
62
- export PATH="$(pyenv root)/bin:$PATH"
48
63
- eval "$(pyenv init -)"
49
64
Original file line number Diff line number Diff line change @@ -10,19 +10,35 @@ if test -z "$PYENV_VERSION"; then
10
10
exit 1
11
11
fi
12
12
13
+ pyenv_root=$( pyenv root)
14
+
13
15
if test -n " $LIBPYTHON " ; then
14
- export LIBPYTHON=$( pyenv root) /$LIBPYTHON
16
+ if test ! -f $LIBPYTHON ; then
17
+ if test -f ${pyenv_root} /$LIBPYTHON ; then
18
+ export LIBPYTHON=${pyenv_root} /$LIBPYTHON
19
+ else
20
+ echo " Invalid value in LIBPYTHON: ${LIBPYTHON} " >&2
21
+ exit 1
22
+ fi
23
+ fi
15
24
fi
16
25
17
- if test " $PYENV_VERSION " = " system" ; then
18
- if test -z " $LIBPYTHON " ; then
19
- echo " ERROR: LIBPYTHON is not provided for PYENV_VERSION=system" > 2
20
- exit 1
26
+ (
27
+ cd $( pyenv root)
28
+ if [ -d .git ]; then
29
+ git fetch origin
30
+ git checkout master
31
+ git reset --hard origin/master
21
32
fi
22
- # NOTE: PYENV_VERSION should be the version of LIBPYTHON during install script
23
- PYENV_VERSION=$( basename $( dirname $( dirname $LIBPYTHON ) ) )
24
- fi
25
- PYTHON_CONFIGURE_OPTS=" --enable-shared" pyenv install -f $PYENV_VERSION
33
+ )
34
+
35
+ case $PYENV_VERSION in
36
+ system)
37
+ ;;
38
+ * )
39
+ PYTHON_CONFIGURE_OPTS=" --enable-shared" pyenv install -f $PYENV_VERSION
40
+ ;;
41
+ esac
26
42
27
43
case " $PYENV_VERSION " in
28
44
* conda* )
@@ -40,6 +56,11 @@ case "$PYENV_VERSION" in
40
56
travis_retry conda create -q -n test-environment python=$python_version numpy
41
57
source $( pyenv prefix) /bin/activate test-environment
42
58
;;
59
+ system)
60
+ travis_retry pip install --user numpy
61
+ sudo sh -c " apt-get update && apt-get install --no-install-recommends -y python3-pip"
62
+ travis_retry python3.6 -m pip install --user numpy
63
+ ;;
43
64
* )
44
65
travis_retry pip install --user numpy
45
66
;;
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
spec . require_paths = [ "lib" ]
37
37
spec . extensions = [ "ext/pycall/extconf.rb" ]
38
38
39
- spec . add_development_dependency "bundler" , ">= 1.17.2"
39
+ spec . add_development_dependency "bundler"
40
40
spec . add_development_dependency "rake"
41
41
spec . add_development_dependency "rake-compiler"
42
42
spec . add_development_dependency "rake-compiler-dock"
You can’t perform that action at this time.
0 commit comments