Skip to content

Commit 71ddc86

Browse files
committed
Merge pull request signalapp#1 from kyleconroy/travis
Add Travis CI support (and fix the tests)
2 parents 933443c + 07751e6 commit 71ddc86

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
language: java

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
BitHub
22
=================
33

4+
[![Build Status](https://travis-ci.org/WhisperSystems/BitHub.png?branch=master)](https://travis-ci.org/WhisperSystems/BitHub)
5+
46
BitHub is a service that will automatically pay a percentage of Bitcoin funds for every submission to a GitHub repository.
57

68
Building

src/test/org/whispersystems/bithub/tests/controllers/GithubControllerTest.java renamed to src/test/java/org/whispersystems/bithub/tests/controllers/GithubControllerTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
public class GithubControllerTest extends ResourceTest {
4343

4444
private static final BigDecimal BALANCE = new BigDecimal(10.01);
45+
private static final BigDecimal EXCHANGE_RATE = new BigDecimal(1.0);
4546

4647
private final CoinbaseClient coinbaseClient = mock(CoinbaseClient.class);
4748
private final GithubClient githubClient = mock(GithubClient.class);
@@ -53,6 +54,7 @@ public class GithubControllerTest extends ResourceTest {
5354
@Override
5455
protected void setUpResources() throws Exception {
5556
when(coinbaseClient.getAccountBalance()).thenReturn(BALANCE);
57+
when(coinbaseClient.getExchangeRate()).thenReturn(EXCHANGE_RATE);
5658
addResource(new GithubController(repositories, githubClient, coinbaseClient, new BigDecimal(0.02)));
5759
addProvider(new UnauthorizedHookExceptionMapper());
5860
}

0 commit comments

Comments
 (0)