Skip to content

Instantly share code, notes, and snippets.

View mefellows's full-sized avatar

Matt Fellows mefellows

View GitHub Profile
@mefellows
mefellows / scala-travis-ci-build-errors
Last active August 29, 2015 14:04
Scala Travis CI Bulid Failures
Log
## Can’t follow (30x) redirects
http://stackoverflow.com/questions/18208224/force-sbt-to-follow-redirects-for-an-explicit-github-releases-url
## Build to watcch
https://travis-ci.org/mefellows/respite/builds/31590813
@mefellows
mefellows / scala-travis-ci-bintray-yml
Last active August 29, 2015 14:04
Scala - Travis CI Plugins Sample plugins.sbt File
language: scala
scala:
- 2.10.3
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
env:
global:
- secure: glhEB9krKsLbmcoQ5l6uDPGX+WWYThNwK24eUFkqutnum2avk98Z3e5sXtldDR386E1GSaDZYzWE8rv0AF9Xdqz4MvnZ/ZK11DtUfvWt9Vrd/NhsV081Mks3iJsyq9rqxk0byazUCuosuCnRTr4jzSE5LrGp2w7Fe1C/yKETYTc=
@mefellows
mefellows / travis-ci-encrypt-creds
Created August 6, 2014 13:25
Travis CI - Encrypt Credentials Example
travis encrypt BINTRAY_API_KEY=SOMEAPIKEYh3h3h3h3h3h3hmyusername --add
travis encrypt BINTRAY_USER="mybintrayusername" --add
travis encrypt SONATYPE_USER="mynexususername" --add
travis encrypt SONATYPE_PASS="mynexuspass" --add
travis encrypt COVERALLS_REPO_TOKEN=myapitokenmd5hash --add
@mefellows
mefellows / travis-ci-setup-example
Created August 6, 2014 13:26
Travis CI Setup Example
gem install travis
travis login
@mefellows
mefellows / scala-travis-ci-plugins.sbt
Created August 6, 2014 13:30
Scala - Travis CI Plugins Sample plugins.sbt File
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
@mefellows
mefellows / travis-ci-bintray-credentials.sh
Created August 6, 2014 13:31
Scala - Travis CI Bintray Credentials Script
#!/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
@mefellows
mefellows / scala-travis-ci-binttray-build.sbt
Created August 6, 2014 13:32
Scala - Travis CI Bintray Sample build.sbt
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"
@mefellows
mefellows / scala-travis-ci-bintray-yml
Created August 6, 2014 13:34
Scala - Travis CI Publish Bintray YAML Sample
language: scala
scala:
- 2.10.3
jdk:
- oraclejdk8
- oraclejdk7
- openjdk7
env:
global:
- secure: glhEB9krKsLbmcoQ5l6uDPGX+WWYThNwK24eUFkqutnum2avk98Z3e5sXtldDR386E1GSaDZYzWE8rv0AF9Xdqz4MvnZ/ZK11DtUfvWt9Vrd/NhsV081Mks3iJsyq9rqxk0byazUCuosuCnRTr4jzSE5LrGp2w7Fe1C/yKETYTc=
@mefellows
mefellows / scala-travis-ci-central-build.sbt
Last active August 29, 2015 14:04
Scala - Travis CI Central Sample build.sbt
import respite.Dependencies
import com.typesafe.sbt.SbtGit._
name := "respite-core"
version := "0.0.1-SNAPSHOT"
instrumentSettings
ScoverageKeys.minimumCoverage := 95
@mefellows
mefellows / deis-issue-1551-deis-builder
Created September 11, 2014 23:42
Deis Issue #1551 - Journal CTL output for deis-builder
core@deis-1 ~ $ journalctl --no-pager -u deis-builder
-- Logs begin at Wed 2014-09-10 22:43:15 UTC, end at Wed 2014-09-10 23:27:23 UTC. --
Sep 10 23:17:04 deis-1 systemd[1]: Starting deis-builder...
Sep 10 23:17:04 deis-1 sh[25133]: Pulling repository deis/builder
Sep 10 23:18:32 deis-1 sh[25133]: 2014/09/10 23:18:32 Error pulling image (latest) from deis/builder, unexpected EOF
Sep 10 23:18:32 deis-1 systemd[1]: deis-builder.service: control process exited, code=exited status=1
Sep 10 23:18:32 deis-1 systemd[1]: Failed to start deis-builder.
Sep 10 23:18:32 deis-1 systemd[1]: Unit deis-builder.service entered failed state.