Last active
August 29, 2015 14:04
-
-
Save mefellows/292fd3e060dc8ca38146 to your computer and use it in GitHub Desktop.
Scala - Travis CI Plugins Sample plugins.sbt File
This file contains hidden or 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
| language: scala | |
| scala: | |
| - 2.10.3 | |
| jdk: | |
| - oraclejdk8 | |
| - oraclejdk7 | |
| - openjdk7 | |
| env: | |
| global: | |
| - secure: glhEB9krKsLbmcoQ5l6uDPGX+WWYThNwK24eUFkqutnum2avk98Z3e5sXtldDR386E1GSaDZYzWE8rv0AF9Xdqz4MvnZ/ZK11DtUfvWt9Vrd/NhsV081Mks3iJsyq9rqxk0byazUCuosuCnRTr4jzSE5LrGp2w7Fe1C/yKETYTc= | |
| - secure: LSz3qTRwykG5moCbWZoDH0eDu4EKEg89N3imxdGJfSrsX/iFpVKtFWfhk78vqBnJYj34H8jfNsm7v4ar8r4QFAXUGVrwAIBDcHuTDVphYBqwLdeImINb9gmUefOwg8z3aFqjkrnxts3U01K4Iuk1R5V6zTsBv5bXIp55/squ1oA= | |
| after_success: | |
| - > | |
| test "${TRAVIS_PULL_REQUEST}" = 'false' && | |
| test "${TRAVIS_JDK_VERSION}" = 'oraclejdk7' && | |
| sh "$TRAVIS_BUILD_DIR/.travis.credentials.sh" && | |
| sbt 'set version := version.value + "." + System.getenv("TRAVIS_BUILD_NUMBER")' publish |
This file contains hidden or 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
| import bintray.AttrMap | |
| import bintray._ | |
| name := "sbt-dotenv" | |
| description := "An SBT Plugin to load environment variables from .env into the JVM System Environment for local development. Assists with 'Twelve Factor App' development principle 3 'Store config in the environment'." | |
| organization := "au.com.onegeek" | |
| scalaVersion := "2.10.4" | |
| version := "1.0" | |
| publishMavenStyle := false | |
| bintrayPublishSettings | |
| bintray.Keys.repository in bintray.Keys.bintray := "sbt-plugins" | |
| licenses += ("MIT", url("http://opensource.org/licenses/MIT")) | |
| bintray.Keys.bintrayOrganization in bintray.Keys.bintray := None |
This file contains hidden or 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
| import respite.Dependencies | |
| import com.typesafe.sbt.SbtGit._ | |
| name := "respite-core" | |
| instrumentSettings | |
| ScoverageKeys.minimumCoverage := 95 | |
| ScoverageKeys.failOnMinimumCoverage := true | |
| ScoverageKeys.highlighting := true | |
| coverallsSettings | |
| licenses += ("MIT", url("http://opensource.org/licenses/MIT")) | |
| git.remoteRepo := "git@github.com:mefellows/respite.git" |
This file contains hidden or 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
| resolvers += Resolver.url( | |
| "bintray-sbt-plugin-releases", | |
| url("http://dl.bintray.com/content/sbt/sbt-plugin-releases"))( | |
| Resolver.ivyStylePatterns) | |
| addSbtPlugin("me.lessis" % "bintray-sbt" % "0.1.1") | |
| resolvers += Classpaths.sbtPluginReleases | |
| resolvers += Classpaths.typesafeReleases | |
| addSbtPlugin("org.scoverage" %% "sbt-scoverage" % "0.99.5.1") | |
| addSbtPlugin("com.sksamuel.scoverage" %% "sbt-coveralls" % "0.0.5") | |
| addSbtPlugin("com.typesafe.sbt" % "sbt-pgp" % "0.8.3") | |
| // Add the following to have Git manage your build versions | |
| resolvers += "jgit-repo" at "http://download.eclipse.org/jgit/maven" | |
| addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "0.6.4") |
This file contains hidden or 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
| language: scala | |
| scala: | |
| - 2.10.4 | |
| jdk: | |
| - oraclejdk8 | |
| - oraclejdk7 | |
| services: mongodb | |
| script: | |
| - sbt scoverage:test | |
| - sbt coveralls | |
| env: | |
| global: | |
| - MONGO_PORT=27017 | |
| - secure: d+Jo3HwjYCnpHLWFr0bsauv0/5OhKl0iSFlGlRo0Ybnv6ii9jo5qYUSV9gVXRFlypOfEmu3gCNzv6GxTLZsTivV38qpVJypDV0N1cGUl7nRmTanU0Ba9LjtusD6dCRqbfOhggdk4mNf7KFNJ6DA1NQHCRuwmOBCLtebu6WaMC5Y= | |
| - secure: LumeI7Zr5Cpotm9pLv3F8116Vt5FwhITfnnqhTCA7iXcHVHVuUz+8mVk3PHuL45Nmbcpivc6B80DhFC5JqeXU3CCrftEETmH29A1uJlS6qkpfj6HjeN1yPVG4qCRWUM0Y/GlDkxH+DlTt5UCTPmRmR5OduLoZYT8iFnrE/74gfA= | |
| - secure: IcZGkHw+qgLT/fHvw7Ifae7SRFybRFLXmA5zsaXBhKTSVTLTd7aTHrEau0+bkEBzk1Nu7SZKZMthV0JDJ+wwPCky5F7KLVX/Tqo9zJK/IJRqVKNtIRLUqb/9HlWyl11AgyZhE+6RcOATaEfDk1ncqye2ZkoKDlhOnTNZSqxCYBc= | |
| after_success: | |
| - > | |
| test "${TRAVIS_PULL_REQUEST}" = 'false' && | |
| test "${TRAVIS_JDK_VERSION}" = 'oraclejdk7' && | |
| sbt 'project respite-core' 'set credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", System.getenv("SONATYPE_USER"), System.getenv("SONATYPE_PASS"))' publish |
This file contains hidden or 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
| #!/bin/bash | |
| 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 | |
| echo $BINTRAY_USER | |
| echo "Created ~/.bintray/.credentials file: Here it is: " | |
| ls -la $FILE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment