-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
224 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
language: scala | ||
scala: | ||
- 2.10.4 | ||
- 2.11.5 | ||
- 2.10.4 | ||
- 2.11.5 | ||
jdk: | ||
- oraclejdk7 | ||
- openjdk6 | ||
- openjdk7 | ||
- oraclejdk7 | ||
- openjdk6 | ||
- openjdk7 | ||
script: | ||
- sbt test | ||
- sbt test | ||
deploy: | ||
skip_cleanup: true | ||
provider: script | ||
script: ./.travis/deploy.sh $TRAVIS_TAG | ||
on: | ||
condition: '"${TRAVIS_SCALA_VERSION}" == "2.11.5" && "${TRAVIS_JDK_VERSION}" == "oraclejdk7"' | ||
tags: true | ||
env: | ||
global: | ||
- secure: CMQoRlhW/ejJjiTIryucBgLXpbMOPx4tP9fzEKDpcltjQMZDIRyAezilraVXdI6Nap4BwbR+JuBXaG0wnfIR7hmEJe2EiWJoTWDXaHM2XnbPMsr44lXvDFPBm2H56jTf/yVTpp2HJO/iaeg+wMODPs9NqK974NY90WlwXuqIbZY= | ||
- secure: WuGBdY3IXh9RP2q0ffVy/Q/qDGTv/DOxjW8dG1BK6F21Itz+9O3cnqHlQtNsoVMB2FmpU3Gb66sOyOYsbE4FDNB+RkFZ+bQ5qlYwNtqea6IgyODWFYMf/6+BxlyEKyFo45BHF33TIZet37vVWx9qdDPaN0tZ8fV5+gwtUa4BJ44= | ||
- secure: "YTyO7algll9BM6I3RA5qMmfjgDTv7Al+oCZQ1SXewNV9jZQYy3DdQjwFDMvhSI2tqTlJs9rWb2pr0yE12YE/JRQDEJqf0XIZYRF6skkqSJy7BcOcbTqseRbY8DThaVtW9HqIHJq2WzoJMEU9KtYsU4ZX3MlthNgPH8hqoFLjKyg=" | ||
- secure: "hKu4UPezvg5GCUyOwtnQ0ZOUZA6bLLC1coodfnSKhTGZTvT4kS5ckbLqMtQTMpbW3+TZLbAuhzIemrxWbvPKJVbw6YEl9ScrsPuJ7ovyRBoIuFp66+BH4apQig7YQ8Lpt2f3Vhq74X0x4NLSfVTgnC2TzzE3wc5T8X/f03rbKzU=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
|
||
tag_version=$1 | ||
|
||
mkdir ~/.bintray/ | ||
FILE=$HOME/.bintray/.credentials | ||
cat <<EOF >$FILE | ||
realm = Bintray API Realm | ||
host = api.bintray.com | ||
user = $BINTRAY_USER | ||
password = $BINTRAY_API_KEY | ||
EOF | ||
|
||
cd $TRAVIS_BUILD_DIR | ||
pwd | ||
|
||
project_version=$(sbt version -Dsbt.log.noformat=true | perl -ne 'print $1 if /(\d+\.\d+[^\r\n]*)/') | ||
if [ "${project_version}" == "${tag_version}" ]; then | ||
sbt +publish | ||
sbt +bintraySyncMavenCentral | ||
else | ||
echo "Tag version '${tag_version}' doesn't match version in scala project ('${project_version}'). Aborting!" | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under. | ||
*/ | ||
import bintray.BintrayPlugin._ | ||
import bintray.BintrayKeys._ | ||
import sbt._ | ||
import Keys._ | ||
|
||
|
@@ -18,7 +20,7 @@ object BuildSettings { | |
// Basic settings for our app | ||
lazy val basicSettings = Seq[Setting[_]]( | ||
organization := "com.snowplowanalytics", | ||
version := "0.2.0", | ||
version := "0.3.0", | ||
description := "Scala tracker for Snowplow", | ||
scalaVersion := "2.10.6", | ||
crossScalaVersions := Seq("2.10.6", "2.11.5"), | ||
|
@@ -40,19 +42,28 @@ object BuildSettings { | |
Seq(file) | ||
}) | ||
|
||
// Publish settings | ||
// TODO: update with ivy credentials etc when we start using Nexus | ||
lazy val publishSettings = Seq[Setting[_]]( | ||
// Enables publishing to maven repo | ||
publishMavenStyle := true, | ||
// Bintray publishing settings | ||
lazy val publishSettings = bintraySettings ++ Seq[Setting[_]]( | ||
licenses += ("Apache-2.0", url("http://www.apache.org/licenses/LICENSE-2.0.html")), | ||
bintrayOrganization := Some("snowplow"), | ||
bintrayRepository := "snowplow-maven" | ||
) | ||
|
||
publishTo <<= version { version => | ||
val basePath = "target/repo/%s".format { | ||
if (version.trim.endsWith("SNAPSHOT")) "snapshots/" else "releases/" | ||
} | ||
Some(Resolver.file("Local Maven repository", file(basePath)) transactional()) | ||
} | ||
// Maven Central publishing settings | ||
lazy val mavenCentralExtras = Seq[Setting[_]]( | ||
pomIncludeRepository := { x => false }, | ||
homepage := Some(url("http://snowplowanalytics.com")), | ||
scmInfo := Some(ScmInfo(url("https://github.com/snowplow/snowplow-scala-tracker"), "scm:[email protected]:snowplow/snowplow-scala-tracker.git")), | ||
pomExtra := ( | ||
<developers> | ||
<developer> | ||
<name>Snowplow Analytics Ltd</name> | ||
<email>support@snowplowanalytics.com</email> | ||
<organization>Snowplow Analytics Ltd</organization> | ||
<organizationUrl>http://snowplowanalytics.com</organizationUrl> | ||
</developer> | ||
</developers>) | ||
) | ||
|
||
lazy val buildSettings = basicSettings ++ scalifySettings ++ publishSettings | ||
lazy val buildSettings = basicSettings ++ scalifySettings ++ publishSettings ++ mavenCentralExtras | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
sbt.version=0.13.2 | ||
sbt.version=0.13.11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("me.lessis" % "bintray-sbt" % "0.3.0") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.