We now fail a build if the debug parameters were commited to the repo
This commit is contained in:
parent
58d58ef3a3
commit
d704b78034
2 changed files with 10 additions and 1 deletions
|
@ -24,7 +24,8 @@ cache:
|
||||||
- $HOME/.android/build-cache
|
- $HOME/.android/build-cache
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- ./gradlew test
|
- ./gradlew check
|
||||||
|
- ./gradlew tests:test
|
||||||
- if [ -n "$TRAVIS_TAG" ]; then
|
- if [ -n "$TRAVIS_TAG" ]; then
|
||||||
wget -O jdk-windows.zip https://github.com/ojdkbuild/ojdkbuild/releases/download/java-1.8.0-openjdk-1.8.0.232-1.b09/java-1.8.0-openjdk-1.8.0.232-1.b09.ojdkbuild.windows.x86_64.zip;
|
wget -O jdk-windows.zip https://github.com/ojdkbuild/ojdkbuild/releases/download/java-1.8.0-openjdk-1.8.0.232-1.b09/java-1.8.0-openjdk-1.8.0.232-1.b09.ojdkbuild.windows.x86_64.zip;
|
||||||
./gradlew desktop:packrWindows32;
|
./gradlew desktop:packrWindows32;
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
package de.tomgrill.gdxtesting.examples;
|
package de.tomgrill.gdxtesting.examples;
|
||||||
|
|
||||||
import com.badlogic.gdx.Gdx;
|
import com.badlogic.gdx.Gdx;
|
||||||
|
import com.unciv.UncivGame;
|
||||||
import com.unciv.models.gamebasics.Ruleset;
|
import com.unciv.models.gamebasics.Ruleset;
|
||||||
|
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -29,6 +30,13 @@ public class BasicTests {
|
||||||
new Ruleset(true).getBuildings().size() > 0);
|
new Ruleset(true).getBuildings().size() > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void gameIsNotRunWithDebugModes() {
|
||||||
|
assertTrue("This test will only pass if the game is not run with debug modes",
|
||||||
|
!new UncivGame("").getSuperchargedForDebug()
|
||||||
|
&& !new UncivGame("").getViewEntireMapForDebug());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// @Test
|
// @Test
|
||||||
// public void setMapEditorScreen() {
|
// public void setMapEditorScreen() {
|
||||||
|
|
Loading…
Reference in a new issue