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

added a styling stage to check the styles first #2752

Merged
merged 1 commit into from
Mar 27, 2019
Merged
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
14 changes: 5 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ before_install:
- export PATH=${PATH}:./vendor/bundle

stages:
- name: styling
- name: test
- name: publish snapshot
if: (branch = master AND type = push)
Expand Down Expand Up @@ -55,7 +56,8 @@ jobs:
install: gem install jekyll -v 2.5
script: sbt makeMicrosite

- env: TEST="linting"
- stage: styling
env: TEST="linting"
script: sbt scalastyle fmtCheck

- env: TEST="scalafix"
Expand All @@ -68,19 +70,13 @@ jobs:
- <<: *bincompat_check
scala: *scala_version_212

- &publish_snapshot
stage: publish snapshot
- stage: publish snapshot
script: |
if [[ $(cat version.sbt) =~ "-SNAPSHOT" ]]; then
sbt ++$TRAVIS_SCALA_VERSION! publish gitSnapshots publish
sbt +publish gitSnapshots +publish
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes it possible for each module to define which scala version to release on (based on their own crossScalaVersions), also simplifies the build here.

else
echo Not publishing a snapshot because the version does not end with -SNAPSHOT for version $TRAVIS_SCALA_VERSION
fi
scala: *scala_version_211
- <<: *publish_snapshot
scala: *scala_version_212
- <<: *publish_snapshot
scala: *scala_version_213

notifications:
webhooks:
Expand Down