Skip to content

Commit

Permalink
- Revert .travis.yml
Browse files Browse the repository at this point in the history
- Remove function-composition
  • Loading branch information
sijie committed Mar 4, 2018
1 parent 5245529 commit 12dac7e
Show file tree
Hide file tree
Showing 38 changed files with 47 additions and 4,553 deletions.
63 changes: 47 additions & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#

language: java C++ ruby
jdk:
- oraclejdk8

sudo: required

Expand All @@ -35,29 +37,58 @@ 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:
- 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
- sudo bash -x $TRAVIS_BUILD_DIR/pulsar-client-cpp/travis-build.sh $HOME/pulsar-dep $TRAVIS_BUILD_DIR dep
- (cd site && make travis_setup)

script:
# Build Java and C++
- mvn license:check test install -DskipTests
# Only test pulsar functions
- cd pulsar-functions && mvn clean test package
- mvn license:check test package && sudo bash -x $TRAVIS_BUILD_DIR/pulsar-client-cpp/travis-build.sh $HOME/pulsar-dep $TRAVIS_BUILD_DIR compile
# Build docker images
- docker/build.sh
# Generate website
- (cd site && make travis_build)

deploy:
-
provider: script
skip_cleanup: true
script: mvn deploy -DskipTests --settings .travis/settings.xml
on:
tags: false
-
provider: script
skip_cleanup: true
script: mvn install deploy -Papache-release -DskipTests --settings .travis/settings.xml
on:
repo: apache/incubator-pulsar
tags: true
-
provider: releases
skip_cleanup: true
api_key:
secure: cmjsJ43FwlwWUVh+4TJ/V+yKu/bd78ov0Olm0BFao0tco5ZYNfbRB5jxWD9X4AxpRN4Rfn+u/17oRavUSfv1M/CKMj6mTzXl8gQ6gieIWrgGYfdZrpBxEY0mccaEbaXSGNEWFj/e8oJixdeBeFCp3AkUSTO9DS5f+yoKeF1XibeJIhDLY0xWgeLMkUimzizsiplQBhrPmHExM8DRwSEojs4np56QgcJHdpU9snxkKzjCW5kKcQ6vPXzWpRLBRxLNU0MzYf6HRSqsGE5M3oG8PXNi+WuMS+4pKfxhcw7vS7642/8dWV28Flvet9E+rXutaM7I+jd5ZQG+/jTo2IOTUJ164ZaxYl6rjsf94d8u51AxDPLer+/C19DfrjiYGOLX8Cad+dLWT+otVISie76oNTeThqyG/5W+PpX9cTP/yBeZs5j/mgYJI4mVU4z0fACgyh+Gc3SyBwPvc3eePsFoVS4CvksgoMJJzgtN6to5hh8Pl4dM3FtpWnhjS3Zm2ieu8CUiC3HKCB1DzeNXXRkgcL+D8CXrxcfeOtBs34MEwua7C3fmSagyt1e1/PeYPE4F9Oi6Tiu59jGA5mnx27TDiPCEsf0a5UBHIY95ducB/BBKsXrACmnzAgPSP321fDNKBWMveTw3h2dKLC6PIf78LJ3Rln/i4okCQ8PkgEOz1A0=
file_glob: true
file: "all/target/pulsar-*.tar.gz"
on:
repo: apache/incubator-pulsar
tags: true
-
provider: script
skip_cleanup: true
script: (cd site && make travis_publish)
on:
repo: apache/incubator-pulsar
branch: master
-
provider: script
skip_cleanup: true
script: docker/publish.sh
on:
tags: true
71 changes: 0 additions & 71 deletions pulsar-functions/api-composition-java/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 12dac7e

Please sign in to comment.