File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
client-hc/src/test/java/com/graphhopper/api Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,10 @@ before_script:
37
37
# Undo `_JAVA_OPTIONS` environment variable; see https://github.com/travis-ci/travis-ci/issues/8408
38
38
before_script :
39
39
- _JAVA_OPTIONS=
40
+ - " mvn --version"
41
+ - " if [ -z \" $API_KEY\" ]; then API_KEY=78da6e9a-273e-43d1-bdda-8f24e007a1fa; fi" # change in GraphHopperWebIT too
40
42
script :
41
- - " mvn --version && mvn clean test verify checkstyle:check findbugs:check forbiddenapis:check -B"
43
+ - " mvn --version && mvn -Dkey=$API_KEY clean test verify checkstyle:check findbugs:check forbiddenapis:check -B"
42
44
43
45
after_success :
44
46
# deploy snapshot artifacts to sonatype and if tagged deploy the release to maven central
Original file line number Diff line number Diff line change 26
26
*/
27
27
public class GraphHopperWebIT {
28
28
29
- public static final String KEY = "614b8305-b4db-48c9-bf4a-40de90919939" ;
29
+ public static final String KEY = System . getProperty ( "key" , "78da6e9a-273e-43d1-bdda-8f24e007a1fa" ) ;
30
30
31
31
private final GraphHopperWeb gh = new GraphHopperWeb ();
32
32
private final GraphHopperMatrixWeb ghMatrix = new GraphHopperMatrixWeb ();
33
33
34
34
@ Before
35
35
public void setUp () {
36
- String key = System .getProperty ("graphhopper.key" , KEY );
37
- gh .setKey (key );
38
- ghMatrix .setKey (key );
36
+ gh .setKey (KEY );
37
+ ghMatrix .setKey (KEY );
39
38
}
40
39
41
40
@ Test
You can’t perform that action at this time.
0 commit comments