Skip to content

Commit

Permalink
setup travis
Browse files Browse the repository at this point in the history
  • Loading branch information
binglihub committed Oct 19, 2018
1 parent 125ed0b commit e996765
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
@@ -0,0 +1,18 @@
sudo: false
language: java
matrix:
include:
- jdk: oraclejdk8

env:
- JACOCO_COVERAGE=true

script:
- "./scripts/run_travis.sh"

after_success:
- bash <(curl -s https://codecov.io/bash)

before_install:
- openssl aes-256-cbc -K $encrypted_0a71570cbb11_key -iv $encrypted_0a71570cbb11_iv
-in profile.json.enc -out profile.json -d
Binary file added profile.json.enc
Binary file not shown.
13 changes: 13 additions & 0 deletions scripts/run_travis.sh
@@ -0,0 +1,13 @@
travis_fold_start build "Build Ingest SDK Java driver"
mvn install -DskipTests=true --batch-mode --show-version
travis_fold_end

travis_fold_start build "Test Ingest SDK Java driver"
PARAMS=()
PARAMS+=("-DtravisIT")
echo "JDK Version: $TRAVIS_JDK_VERSION"
[[ -n "$JACOCO_COVERAGE" ]] && PARAMS+=("-Djacoco.skip.instrument=false")
# verify phase is after test/integration-test phase, which means both unit test
# and integration test will be run
mvn "${PARAMS[@]}" verify --batch-mode
travis_fold_end

0 comments on commit e996765

Please sign in to comment.