Skip to content

Commit

Permalink
Install git during circleci setup (#1878)
Browse files Browse the repository at this point in the history
CircleCI builds were failing because sbt shells out to git but the command was not found.

Install git before invoking sbt.  Also fix some tests that were broken as a result of a bad automatic merge.

Signed-off-by: Alex Leong <alex@buoyant.io>
  • Loading branch information
adleong committed Mar 28, 2018
1 parent 019608d commit 5eff2d3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ jobs:
- run:
name: Install sbt dependencies
command: |
apt-get update && apt-get install -y --no-install-recommends git
sh -x ci/update.sh
# Download and install npm dependencies. They may already be in cache.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ConsulTest extends FunSuite {
assert(consul.preferServiceAddress == Some(false))
assert(consul.weights == Some(Seq(TagWeight("primary", 100.0))))
val clientAuth = ClientAuth("/certificates/cert.pem", "/certificates/key.pem")
val tlsConfig = TlsClientConfig(Some(false), Some("consul.io"), Some(List("/certificates/cacert.pem")), Some(clientAuth))
val tlsConfig = TlsClientConfig(None, Some(false), Some("consul.io"), Some(List("/certificates/cacert.pem")), Some(clientAuth))
assert(consul.tls == Some(tlsConfig))
assert(!consul.disabled)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ConsulConfigTest extends FunSuite with OptionValues {
assert(consul.readConsistencyMode == Some(ConsistencyMode.Stale))
assert(consul.writeConsistencyMode == Some(ConsistencyMode.Consistent))
val clientAuth = ClientAuth("/certificates/cert.pem", "/certificates/key.pem")
val tlsConfig = TlsClientConfig(Some(false), Some("consul.io"), Some(List("/certificates/cacert.pem")), Some(clientAuth))
val tlsConfig = TlsClientConfig(None, Some(false), Some("consul.io"), Some(List("/certificates/cacert.pem")), Some(clientAuth))
assert(consul.tls == Some(tlsConfig))
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ trait BudgetedRetries extends FunSuite with Retries {
if (isRetryable(test)) withRetries(test, retries)
else super.withFixture(test)

private[this] def withRetries (test: NoArgTest, remaining: Int): Outcome =
private[this] def withRetries(test: NoArgTest, remaining: Int): Outcome =
super.withFixture(test) match {
case Failed(_) | Canceled(_) if remaining == 1 => super.withFixture(test)
case Failed(_) | Canceled(_) => withRetries(test, remaining - 1)
Expand Down

0 comments on commit 5eff2d3

Please sign in to comment.