Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Remove deprecated github_token from travis.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Benster Nzewi authored and Benster Nzewi committed Apr 12, 2019
1 parent 9552283 commit c0e5c76
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ addons:
organization: cjscommonplatform
token:
secure: WdOrHCBnXkCN78Cn71AJxQI65rUc3+2arN5nwx2srkcDwN8WJU14hObme8HvmwA9wxo5YNjBquTeWMng3O6UXaADdwRpBe06NMalJjaAONxkVfBLebKWtC5oecVorw14IlIjxSH8IFpRoea+X+GqLwXfRyedyngTdV0bfBuRV8BfSmhNPV/I7mq5SDsmJjKdAqEio226n7MlMOqBbDOyIgdBcR+StNP4lE+hJoNQh0eRxbGFHlocioHJRsbVc2fEdGvEPdaZP/Bxkdg3Yhbemx7ZDplA7/vmFzgZLhZGUrEyMcPs0pEIKKo7Uc4uxnzH/KwY4TENlb+nucuZWnDCn7xj/B1UoS5IdaYoCNmmozCscYRNO0rfzeC5Xew4tcDLDL09IsNS1eP/7Psgx+ct4Pusy1+4/VZaQ7WHhFRl3ZrY1id159cHGWd61vQzAT22KqKCTAIvwpcemxD92RIGpotHlk2XJlrk42qX3mviv7tgUhzUu/62Q1Uc7LZlt78UydSx01VuoEzPFftXtdNzLDkV2fFlgIpk17FUBo0m8EZXzGO3QwKhgfF/qhLdn+sT1VH7HayK40jiA0m64KDs6VhPnZU/SwRIaMroUBSE63XvYj4m6m/v8Ss9HclXn32pKhceOH3PXcenjvcYDWubGLiM2BfautbGP2F3o8yvc/s=
github_token:
secure: ZtTa8k0QfxsNhbmG2uzDE3sV1KlAPSWYUcTeFeN16F6/67TCk8hrt4g+Q150TerRIpYp2KnEXekvc40o/Svw9c8No/Z5ZUdgEdLm0gXA1VbsCnGToMFr5Py38uA6huSTJcv/CD/yYvIFftTFZtXIwbrbGRORj6V2z9VM4xfkBoF6Or8i//eu366VEx0lKM0EiOdt1tuZGrUcRyWGov1czJjhMyXh2GwG1LsxselsI4M61QO35WwCvvFiMryI6Whzn+4Qry9141SPrR4cnxp0OWqlhqXkWX8oBCKTofEh8VwBWN5xkMtkc24w0hVqTVB9ji9+oLDhDLwrvX1VW3fUKGkLYDbS9KVtmuVIKYfLMUAZNorMhWttI8Owt3vtaDCUVnnuZ/qXlzxCJwKe3loNxL0xvEOivLpXOfX9s5IB1S+kxLAbyGtg3kfZAPxVVJGhSkd8+RO5nhGQ2cWfuW1PC7P19xzthKpbwX2il/56XZgVdMl3vdNrF0XSEuHJ1AsalM7XvjpBtrlg+o85547F77JITcNNb0r/2zu2Sv4opT1/EOXI4gO1qk6YxRGSSGY1D6e+W3QPfQ8cU0RvzZKzUl1bef/VXq6x2Alz55h/EE5rhkqSSd2PQHdakwPboPb3XKybDPmqGewMBVyFBiM9kIL27IQU461LocXtJmekFzQ=
before_install:
- git clone https://github.com/CJSCommonPlatform/travis-settings.git target/travis-settings
- ln -sfT ${PWD}/target/travis-settings/settings.xml ${HOME}/.m2/settings.xml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@
import static org.hamcrest.CoreMatchers.is;

import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class CatalogIT {

private final Catalog catalog = new CatalogObjectFactory().catalog();
private static final Logger logger = LoggerFactory.getLogger(CatalogIT.class);

@Test
public void shouldMapSchemasOnClasspathToTheirIds() throws Exception {

dodgyMethod();

final String id_1 = "http://justice.gov.uk/standards/address.json";
final String json_1 = catalog.getSchema(id_1).get().toString();

Expand Down Expand Up @@ -44,4 +49,10 @@ public void shouldMapSchemasOnClasspathToTheirIds() throws Exception {
.assertThat("$.allOf[1].allOf[0].$ref", is("#/definitions/complex_address"))
;
}

public void dodgyMethod() {
String DODGYVARIABLE = "dodgy";
logger.info("dodgy: " + DODGYVARIABLE);
System.out.println("Invoke dodgy method");
}
}
12 changes: 12 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#sonar.projectKey=uk.gov.justice.schema:json-schema-catalog
sonar.projectName=Json-schema-catalog
#sonar.projectVersion=1.0-SNAPSHOT


# =====================================================
# Properties that will be shared amongst all modules
# =====================================================

# SQ standard properties
sonar.sources=src/main/java

0 comments on commit c0e5c76

Please sign in to comment.