Skip to content

Commit 49b33ba

Browse files
authored
Merge pull request #772 from ychin/fix_travis_ci_build_ruby
Fix Travis CI build break and ruby configuration error
2 parents eda162c + c5e9d1f commit 49b33ba

1 file changed

Lines changed: 16 additions & 8 deletions

File tree

.travis.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,22 @@ dist: trusty
44
os:
55
- osx
66

7-
osx_image: xcode9.3
7+
osx_image:
8+
- xcode9.4
9+
# Pending Core Text rendering fix for Mojave (#751)
10+
#- xcode10.1
811

912
compiler:
1013
- clang
1114

15+
addons:
16+
homebrew:
17+
packages:
18+
- lua
19+
- ruby
20+
- python3
21+
update: true
22+
1223
env:
1324
- MACOSX_DEPLOYMENT_TARGET=10.8
1425
XCODEFLAGS="MACOSX_DEPLOYMENT_TARGET=10.8"
@@ -21,17 +32,13 @@ env:
2132
vi_cv_dll_name_python=/System/Library/Frameworks/Python.framework/Versions/2.7/Python
2233
vi_cv_dll_name_python3=/usr/local/Frameworks/Python.framework/Versions/3.7/Python
2334
VIMCMD=src/MacVim/build/Release/MacVim.app/Contents/MacOS/Vim
24-
"CONFOPT='--with-features=huge --enable-multibyte --enable-terminal --enable-netbeans --with-tlib=ncurses --enable-cscope --enable-perlinterp=dynamic --enable-pythoninterp=dynamic --enable-python3interp=dynamic --enable-rubyinterp=dynamic --with-ruby-command=/usr/local/bin/ruby --enable-luainterp=dynamic --with-lua-prefix=/usr/local --enable-gui=macvim'"
35+
"CONFOPT='--with-features=huge --enable-multibyte --enable-terminal --enable-netbeans --with-tlib=ncurses --enable-cscope --enable-perlinterp=dynamic --enable-pythoninterp=dynamic --enable-python3interp=dynamic --enable-rubyinterp=dynamic --with-ruby-command=/usr/local/opt/ruby/bin/ruby --enable-luainterp=dynamic --with-lua-prefix=/usr/local --enable-gui=macvim'"
36+
DYLD_LIBRARY_PATH=/usr/local/opt/ruby/lib:$DYLD_LIBRARY_PATH # Ruby is keg-only in Homebrew, so need to manually link in the path so Vim will know where to look for the binaries.
2537

2638
sudo: false
2739

28-
before_install:
29-
- brew update || brew update
30-
- brew upgrade python
31-
- brew install lua
32-
- brew install ruby
33-
3440
script:
41+
- set -e
3542
- NPROC=$(getconf _NPROCESSORS_ONLN)
3643
- ./configure $CONFOPT --enable-fail-if-missing
3744
- cat src/auto/config.mk
@@ -45,6 +52,7 @@ script:
4552
- rm -f result; $VIMCMD -g -f -c "redir>result" -c "py import sys; print(\"Test\")" -c "redir END" -c q; cat result; echo; grep -q -w Test result
4653
- rm -f result; $VIMCMD -g -f -c "redir>result" -c "py3 import sys; print(\"Test\")" -c "redir END" -c q; cat result; echo; grep -q -w Test result
4754
- rm -f result; $VIMCMD -g -f -c "redir>result" -c "ruby puts(\"Test\")" -c "redir END" -c q; cat result; echo; grep -q -w Test result
55+
- rm -f result;
4856
- make test
4957
- make -C src/testdir clean
5058
- make -C src testgui

0 commit comments

Comments
 (0)