Skip to content
This repository has been archived by the owner on Nov 28, 2019. It is now read-only.

Sonatype Release #93

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
target
.sbtopts
project/.sbt
project/zecret
project/travis-deploy-key
project/secrets.tar.xz

# Dropbox settings and caches
.dropbox
.dropbox.attr
Expand Down Expand Up @@ -66,7 +73,8 @@ flycheck_*.el
.LSOverride

# Icon must end with two \r
Icon
Icon


# Thumbnails
._*
Expand Down
62 changes: 59 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,67 @@
language: scala
sudo: false

# Main Scala version
scala:
- 2.12.6
- 2.12.8
- 2.11.12

jdk:
- oraclejdk8
- openjdk8

before_install:
- export PATH=${PATH}:./vendor/bundle
- "[ -z \"${encrypted_316f730cabee_iv}\" ] || openssl aes-256-cbc -K $encrypted_316f730cabee_key -iv $encrypted_316f730cabee_iv -in ./project/secrets.tar.xz.enc -out ./project/secrets.tar.xz -d"
- "[ -z \"${encrypted_316f730cabee_iv}\" ] || tar xfvJ project/secrets.tar.xz -C project"
- git fetch --tags
- export PATH=${PATH}:./vendor/bundle

install:
- rvm use 2.4.4 --install --fuzzy
- gem update --system
- gem install sass
#- gem install jekyll -v 3.8.3

stages:
- name: test
- name: docs
- name: release
if: (branch = master AND type = push) OR (tag IS present)
- name: publishMicrosite
if: tag IS present

jobs:
include:
- &lint
stage: test
name: "Lint"
script: sbt ++$TRAVIS_SCALA_VERSION check
- &test
stage: test
name: "Test for Scala"
script: sbt ++$TRAVIS_SCALA_VERSION test package packageSrc publishLocal
- &docs
stage: docs
name: "Docs"
script: sbt tut
- &release
stage: release
name: "Release"
before_script: export PGP_SECRET="$(<./project/zecret)"
script: sbt ci-release || sbt sonatypeReleaseAll


cache:
directories:
- $HOME/.sbt/1.0/dependency
- $HOME/.sbt/boot/scala*
- $HOME/.sbt/launchers
- $HOME/.rvm

before_cache:
- find $HOME/.sbt -name "*.lock" -type f -delete
- find $HOME/.ivy2/cache -name "ivydata-*.properties" -type f -delete
- rm -rf $HOME/.ivy2/local

script:
- sbt tut
- sbt ++$TRAVIS_SCALA_VERSION scalafmtCheck test:scalafmtCheck scalafmtSbtCheck test:run
Expand Down
23 changes: 7 additions & 16 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,13 @@ organization in ThisBuild := "org.scalaz"

version in ThisBuild := "0.1.0-SNAPSHOT"

publishTo in ThisBuild := {
val nexus = "https://oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots".at(nexus + "content/repositories/snapshots"))
else
Some("releases".at(nexus + "service/local/staging/deploy/maven2"))
}

dynverSonatypeSnapshots in ThisBuild := true

lazy val sonataCredentials = for {
username <- sys.env.get("SONATYPE_USERNAME")
password <- sys.env.get("SONATYPE_PASSWORD")
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)

credentials in ThisBuild ++= sonataCredentials.toSeq
inThisBuild(
List(
organization := "org.scalaz",
homepage := Some(url("https://scalaz.github.io/scalaz-nio/")),
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))
)
)

addCommandAlias("fmt", "all scalafmtSbt scalafmt test:scalafmt")
addCommandAlias("check", "all scalafmtSbtCheck scalafmtCheck test:scalafmtCheck")
Expand Down
2 changes: 1 addition & 1 deletion project/ScalazBuild.scala
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ object Scalaz {
def stdSettings(prjName: String) = Seq(
name := s"scalaz-$prjName",
scalacOptions := stdOptions,
crossScalaVersions := Seq("2.12.6", "2.11.12"),
crossScalaVersions := Seq("2.12.8", "2.11.12"),
scalaVersion in ThisBuild := crossScalaVersions.value.head,
scalacOptions := stdOptions ++ extraOptions(scalaVersion.value),
libraryDependencies ++= compileOnlyDeps ++ testDeps ++ compileAndTest ++ Seq(
Expand Down
8 changes: 8 additions & 0 deletions project/developers.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[
{
"name" : "Iurii Susuk",
"username" : "ysusuk",
"email" : "iuriisusuk@gmail.com",
"url" : "http://iuriisusuk.com"
}
]
11 changes: 6 additions & 5 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "3.3.0")
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.1.3")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.6.0-RC4")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.3")
addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.6.10")
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "3.3.0")
addSbtPlugin("com.dwijnand" % "sbt-travisci" % "1.1.3")
addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.6.0-RC4")
addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.3.3")
addSbtPlugin("org.tpolecat" % "tut-plugin" % "0.6.10")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.2.1")
Binary file added project/secrets.tar.xz.enc
Binary file not shown.
Loading