Permalink
Browse files

deployments on oss.jfrog.org artifactory

travis encrypted credentials for deplyoments
  • Loading branch information...
szimano committed Feb 16, 2015
1 parent d44410f commit 830d8d888261be447fd05f5782fc181f4f103f55
Showing with 27 additions and 2 deletions.
  1. +17 −0 .travis.credentials.sh
  2. +7 −1 .travis.yml
  3. +3 −1 project/Build.scala
View
@@ -0,0 +1,17 @@
#!/bin/bash
mkdir ~/.bintray/
BINTRAY_FILE=$HOME/.bintray/.credentials
ARTIFACTORY_FILE=$HOME/.bintray/.artifactory
cat <<EOF >$BINTRAY_FILE
realm = Bintray API Realm
host = api.bintray.com
user = $BINTRAY_USER
password = $BINTRAY_PASSWORD
EOF
cat <<EOF >$ARTIFACTORY_FILE
realm = Artifactory Realm
host = oss.jfrog.org
user = $BINTRAY_USER
password = $BINTRAY_PASSWORD
EOF
View
@@ -1,3 +1,9 @@
language: scala
scala:
- 2.11.5
- 2.11.5
after_success:
- sh "$TRAVIS_BUILD_DIR/.travis.credentials.sh" && sbt publish
env:
global:
- secure: rI0yiqoisNVKhH/ofJ00Ymj47Uw4FYvxhiNmCv5LObfu6dQQohaMi9BAVzpr+aVvBeXfWT5As9giTuDZfcxkHoXXMM0VIEgp5XpLxRFDOJBmvgagJqN/tM22yU3aDexQm/ORBpETLnYtvbazbo6q7fYT+pfc8HEtu8BfbpLe4ro=
- secure: f2iy9eo7ZQThWGNW1kCllTEFaGi9EuiJKYnRe6SsbXZjmxeo8Q+KvPvbqOjkvdH43krFySnrF1VO/fdhDMcP2XmnCkyyX37K/c/iOZSWoyCydYeydM0YgNoUpoxiFC9WCgffSWI4q1Tn0RsC+yzXrysXf6/ii4S8SBuRv4yBTHA=
View
@@ -8,7 +8,7 @@ import bintray.Keys._
object BuildSettings {
val buildSettings = Defaults.coreDefaultSettings ++ bintraySettings ++ Seq(
organization := "com.softwaremill.supler",
version := "0.2.1",
version := "0.3.0-SNAPSHOT",
scalaVersion := "2.11.5",
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature", "-language:existentials", "-language:higherKinds"),
// bintray
@@ -34,6 +34,8 @@ object BuildSettings {
</developers>,
parallelExecution := false,
homepage := Some(new java.net.URL("https://github.com/softwaremill/supler")),
publishTo := (if (isSnapshot.value) Some("Artifactory Realm" at "http://oss.jfrog.org/artifactory/oss-snapshot-local") else publishTo.value),
credentials := (if (isSnapshot.value) Credentials(Path.userHome / ".bintray" / ".artifactory") :: Nil else credentials.value),
licenses := ("Apache-2.0", new java.net.URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) :: Nil
)
}

0 comments on commit 830d8d8

Please sign in to comment.