Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Now using Travis stages to test, upload artifacts, and publish #17

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
.gradle
*/build
build/
.DS_Store
.idea
spark-warehouse
*.ipr
*.iml
*.iws

isolation-forest/bin
isolation-forest/bin
40 changes: 25 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,32 @@ jdk:
jobs:
include:
- scala: 2.11.8
env: SPARK_VERSION=2.3.0 PERFORM_RELEASE=true # Only one build should have PERFORM_RELEASE=true.
env: SPARK_VERSION=2.3.0
script: ./gradlew build -s -PscalaVersion=$TRAVIS_SCALA_VERSION -PsparkVersion=$SPARK_VERSION;
- scala: 2.11.8
env: SPARK_VERSION=2.4.3 PERFORM_RELEASE=false
env: SPARK_VERSION=2.4.3
script: ./gradlew build -s -PscalaVersion=$TRAVIS_SCALA_VERSION -PsparkVersion=$SPARK_VERSION;
- scala: 2.12.11
env: SPARK_VERSION=2.4.3 PERFORM_RELEASE=false
env: SPARK_VERSION=2.4.3
script: ./gradlew build -s -PscalaVersion=$TRAVIS_SCALA_VERSION -PsparkVersion=$SPARK_VERSION;
- stage: upload
scala: 2.11.8
env: SPARK_VERSION=2.3.0
script: ./gradlew bintrayUpload -s -PscalaVersion=$TRAVIS_SCALA_VERSION -PsparkVersion=$SPARK_VERSION
if: (branch = master) AND NOT (type = pull_request)
- scala: 2.11.8
env: SPARK_VERSION=2.4.3
script: ./gradlew bintrayUpload -s -PscalaVersion=$TRAVIS_SCALA_VERSION -PsparkVersion=$SPARK_VERSION
if: (branch = master) AND NOT (type = pull_request)
- scala: 2.12.11
env: SPARK_VERSION=2.4.3
script: ./gradlew bintrayUpload -s -PscalaVersion=$TRAVIS_SCALA_VERSION -PsparkVersion=$SPARK_VERSION
if: (branch = master) AND NOT (type = pull_request)
- stage: release
scala: 2.11.8
env: SPARK_VERSION=2.3.0
script: ./gradlew build -s -PscalaVersion=$TRAVIS_SCALA_VERSION -PsparkVersion=$SPARK_VERSION && ./gradlew ciPerformRelease;
if: (branch = master) AND NOT (type = pull_request)

# Skipping install step to avoid having Travis run arbitrary './gradlew assemble' task
# https://docs.travis-ci.com/user/customizing-the-build/#Skipping-the-Installation-Step
Expand All @@ -25,15 +46,4 @@ install:
# Don't build tags
branches:
except:
- /^v\d/

# Build and perform release (if needed).
# Currently, only one build is released using Shipkit. Once Shipkit supports releasing multiple builds under the same
# version, we will automatically publish the artifacts from all builds.
# https://github.com/mockito/shipkit/issues/858
script:
- if [ $PERFORM_RELEASE == true ]; then
./gradlew build -s -PscalaVersion=$TRAVIS_SCALA_VERSION -PsparkVersion=$SPARK_VERSION && ./gradlew ciPerformRelease;
else
./gradlew build -s -PscalaVersion=$TRAVIS_SCALA_VERSION -PsparkVersion=$SPARK_VERSION;
fi
- /^v\d/
1 change: 0 additions & 1 deletion build/shipkit/all-contributors.json

This file was deleted.