Skip to content

Commit

Permalink
Merge pull request #3 from dwijnand/travis
Browse files Browse the repository at this point in the history
Publish from Travis
  • Loading branch information
dwijnand authored Sep 18, 2016
2 parents 315cabf + 6840338 commit 6a30086
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
language: scala
jdk: oraclejdk8
scala: 2.10.6
script: project/travis.sh

env:
global:
- COURSIER_PROGRESS=0
- secure: PJ5eWT7PR7VUFrZiaZ6HvTOk+Is09fvpmHNkhAz25rlwThV+8dSNRiUcJCs7uYi+MrvY5JpsTzDihKq1pPbyYdQUaQvTkAB1BLY6lixleBi0QGk9YS5KyEYr/eLfopqBalRtCu7tViG8Zo23MXGhu4ZBbdrBIJHBJIqAV/q3H90UPasgOYtBPSf0lor0Hevm+lDz+zxYoPfsLqe02KceAJwl8hvwsFl8sFao7V90xvkzA2uTqw+GbZGXZ/hNBnaAYD5j7oipDLvX8YBtS1lQdfl2ZGIpwy5AEyt39jdc718+C8e5xPiU9713ESSLApge6NgVyfZDGd6qZs7Zg/dy2o5w40VJ8qUMK5QMCQuZQVbeYyvXrBd3Ye8zBMu4QoSBM62VtJrWQ3eK9nyaIg8XkBDVWX3YiMSEUyVd8WbzMjpi4yFphLmqqKTHUliQgGGCc/N2Qh9s+o7slX4Ko29qN+OTZOIxIxdr6YRHpb2N/n1b4pDUqDIpsN+UMDA3SpGmKN9INx+/A3gBDhOXPFV/pYVo4yxp/Vs7TMpXoJCef1dCU6mQpOdCHppOSX2Q5a9Qxd31LXTFRcNVihLK6sTq2K3aHGWhI3/uoXSMzvvaFCQpNX0HAluyazryIWh6xTRqMDHAImBbATpOEamr3xt3K7Qo2AJH+8mlwTx0lB4lweE=

cache:
directories:
Expand Down
16 changes: 16 additions & 0 deletions project/travis.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env bash

if [[ "$TRAVIS_PULL_REQUEST" == "false" ]]; then
PUBLISH=publish
mkdir ~/.bintray
cat > ~/.bintray/.credentials <<EOF
realm = Bintray API Realm
host = api.bintray.com
user = dwijnand
password = $BINTRAY_API_KEY
EOF
else
PUBLISH=publishLocal
fi

sbt ++$TRAVIS_SCALA_VERSION test "$PUBLISH"
4 changes: 2 additions & 2 deletions src/main/scala/sbtdynver/DynVerPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ object DynVerPlugin extends AutoPlugin {
object autoImport {
val dynver = taskKey[String]("The version of your project, from git")
val dynverCurrentDate = settingKey[Date]("The current date, for dynver purposes")
val dynverCheckVersion = taskKey[Boolean]("Check if version and dynver match")
val dynverAssertVersion = taskKey[Unit]("Assert if version and dynver match")
val dynverCheckVersion = taskKey[Boolean]("Checks if version and dynver match")
val dynverAssertVersion = taskKey[Unit]("Asserts if version and dynver match")
}
import autoImport._

Expand Down

0 comments on commit 6a30086

Please sign in to comment.