Skip to content

Commit

Permalink
Run travis ci on linux and osx (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
sijie committed Mar 4, 2018
1 parent aca6ac5 commit c1b68ed
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
#

language: java C++ ruby
jdk:
- oraclejdk8

sudo: required

Expand All @@ -37,15 +35,26 @@ before_deploy:
- echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import --batch || true
- echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust --batch || true

matrix:
include:
- os: osx
osx_image: xcode8
- os: linux
env: CUSTOM_JDK="oraclejdk8"
- os: linux
dist: trusty
env: CUSTOM_JDK="openjdk8"

# Upgrade to maven 3.5.0
before_install:
- export M2_HOME=$HOME/apache-maven-3.5.0
- if [ ! -d $M2_HOME/bin ]; then curl https://archive.apache.org/dist/maven/maven-3/3.5.0/binaries/apache-maven-3.5.0-bin.tar.gz | tar zxf - -C $HOME; fi
- export PATH=$M2_HOME/bin:$PATH
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then jdk_switcher use "$CUSTOM_JDK"; fi

install:
- sudo bash -x $TRAVIS_BUILD_DIR/pulsar-client-cpp/travis-build.sh $HOME/pulsar-dep $TRAVIS_BUILD_DIR dep
- (cd site && make travis_setup)
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo bash -x $TRAVIS_BUILD_DIR/pulsar-client-cpp/travis-build.sh $HOME/pulsar-dep $TRAVIS_BUILD_DIR dep; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then (cd site && make travis_setup); fi

script:
# Build Java and C++
Expand Down

0 comments on commit c1b68ed

Please sign in to comment.