Permalink
Browse files

Travis CI

  • Loading branch information...
1 parent 7b8d092 commit 4319afead1bfd506bc74e2f098d4ce7d0bb1b09b @eed3si9n committed Aug 1, 2016
Showing with 30 additions and 4 deletions.
  1. +23 −0 .travis.yml
  2. +2 −3 build.sbt
  3. +5 −1 core/src/test/scala/githubspec.scala
View
@@ -0,0 +1,23 @@
+cache:
+ directories:
+ - $HOME/.ivy2/cache
+ - $HOME/.sbt/boot
+
+language: scala
+
+scala:
+ - 2.10.6
+ - 2.11.8
+
+env:
+ - secure: "pQAFLP4eSpQvo63+LtXO08JETETF9ei7gEfq0wmS/1U1YntRqkc5fhsBq45L6N5FStC0LmmJyff3Kza9Elufj0rkYvQLvQAwotfjNeKN0rBlFusXEH8USvq+ZzAdgEAJYp9I1FIojTwIy22yUfFm8fQVGwiBRB1oulSmz6VJAhLaEmVUotONapVRwresbxEzodyuCp8hxIkQJJ89tx8CfWpifcMcrP6FLnzYSL1A0Kb3QTSih1HhaqO8CfSPzemVXP8IXFyau0pEwnSqAi8lRPh83FUn65f/GsDl1CZUSsdgYSH8Jp4Mr06IGoc56CRe4x5qCkMs7j6Ky8R3PcipVWVz1/1mZy89AxBSfDzTgF2uOpw7xeIIKqXJeE6GeO7v+G5SL098zwzAvBD73Xq2rCXWG2uDA5KyfyhtfNsHNL96F7LmT6r8/ddPm8rbnNi+FvLVulA/FAiI+LSopWSDwzdluQSIgFVoCMbK9Fw3UeKCW/FCxus6BpNlEE4BsyqEJRHilkxZebO/elD4BipqEDBz2riq0W/GeqHoYodnW0fRE1C8Zh61cvD5pZpa7J13sVRE0IyfnjnD05XU9B+PYIGU9BZLBmH6hmKLj3xYAVvcYhbpYjtbKDd8XVhJ8iGeRBG+iGqrGgNwCtL4wvUmhjcz2TT5Dbgq7zJLj6QAS9Y="
+
+script:
+ - sbt ++$TRAVIS_SCALA_VERSION test
+
+jdk:
+ - oraclejdk7
+
+before_cache:
+ - find $HOME/.ivy2 -name "ivydata-*.properties" -print -delete
+ - find $HOME/.sbt -name "*.lock" -print -delete
View
@@ -3,9 +3,8 @@ lazy val gigahorseVersion = "0.1.0"
lazy val gigahorseCore = "com.eed3si9n" %% "gigahorse-core" % gigahorseVersion
lazy val scalatest = "org.scalatest" %% "scalatest" % "3.0.0-RC4"
lazy val sbtIo = "org.scala-sbt" %% "io" % "1.0.0-M6"
-// lazy val slip28JsonAst = "org.mdedetrich" %% "scala-json-ast" % "1.0.0-M1"
-lazy val sjsonNewScalaJson = "com.eed3si9n" %% "sjson-new-scalajson" % "0.4.2-SNAPSHOT"
-lazy val sjsonNewCore = "com.eed3si9n" %% "sjson-new-core" % "0.4.2-SNAPSHOT"
+lazy val sjsonNewScalaJson = "com.eed3si9n" %% "sjson-new-scalajson" % "0.4.2"
+lazy val sjsonNewCore = "com.eed3si9n" %% "sjson-new-core" % "0.4.2"
lazy val commonSettings: Seq[Def.Setting[_]] = Seq(
version := s"gigahorse${gigahorseVersion}_${baseVersion}",
@@ -10,7 +10,11 @@ import scala.json.ast.unsafe._
import sjsonnew.support.scalajson.unsafe.CompactPrinter
class GithubSpec extends AsyncFlatSpec with Matchers {
- lazy val client = Github.localConfigClient("gigahorse.token")
+ lazy val client =
+ sys.env.get("GIGAHORSE_TOKEN") match {
+ case Some(x) => Github.oauthClient(x)
+ case _ => Github.localConfigClient("gigahorse.token")
+ }
val user = "eed3si9n"
val name = "gigahorse"
val tree_sha = "d19f416669ea6a2ffc22ab91bed8a9feff48e778"

0 comments on commit 4319afe

Please sign in to comment.