Skip to content

Commit

Permalink
Merge pull request Aorimn#2 from Aorimn/master
Browse files Browse the repository at this point in the history
Update upstream modifications
  • Loading branch information
haobinnan authored Nov 3, 2020
2 parents 77280e7 + c6e5a26 commit 9a02545
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
12 changes: 8 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@ compiler:
- clang
- gcc

os:
- linux
- osx
jobs:
include:
- os: linux
disk: bionic
- os: linux
dist: xenial
- os: osx

env:
global:
- PATH="/usr/bin:/usr/local/bin:$PATH"

before_install:
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -qq libfuse-dev libpolarssl-dev ruby-dev; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install -qq libfuse-dev ruby-dev libmbedtls-dev; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew update; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then brew install -v Caskroom/cask/osxfuse; fi
- if [ "$TRAVIS_OS_NAME" = "osx" ]; then ./src/mbed_install.sh; fi
Expand Down
4 changes: 2 additions & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ else()
endif()

find_package (Ruby)
if(RUBY_FOUND AND RUBY_INCLUDE_DIRS AND RUBY_LIBRARIES)
if(RUBY_FOUND AND RUBY_INCLUDE_DIRS AND RUBY_LIBRARY)
include_directories (${RUBY_INCLUDE_DIRS})
set (LIB "${LIB} ${RUBY_LIBRARIES}")
set (LIB "${LIB} ${RUBY_LIBRARY}")
add_definitions (-D_HAVE_RUBY=${RUBY_VERSION_STRING})
set (SOURCES ${SOURCES} ruby.c)
endif()
Expand Down

0 comments on commit 9a02545

Please sign in to comment.