forked from jsettlers/settlers-remake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (47 loc) · 1.48 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
language: android
sudo: true
jdk:
- oraclejdk8
env:
matrix:
# Only compile and build basic jars
- TARGET="assemble"
- TARGET=":jsettlers.main.android:build"
# Run single test targets
- TARGET=":jsettlers.logic:unitTest"
- TARGET=":jsettlers.common:test"
- TARGET=":jsettlers.network:test --info"
- TARGET=":jsettlers.logic:aiDifficultiesIT"
- TARGET=":jsettlers.logic:autoReplayIT"
- TARGET=":jsettlers.logic:replayValidationIT"
# Deploy to GitHub
- TARGET="release deployToGithub"
android:
components:
# Those two lines allow us to use any build tools version.
- tools
- platform-tools
- android-27
- build-tools-27.0.3
- extra-google-m2repository
- extra-android-m2repository
before_script:
- sudo service postgresql stop || true
- sudo service mysql stop || true
- sudo service memcached stop || true
- sudo service bootlogd stop || true
- sudo service elasticsearch stop || true
- sudo service mongodb stop || true
- sudo service neo4j stop || true
- sudo service cassandra stop || true
- sudo service riak stop || true
- sudo service rsync stop || true
- sudo service x11-common stop || true
script: GRADLE_OPTS='-Xmx600m -Dorg.gradle.jvmargs="-Xmx1500m"' ./gradlew $TARGET --stacktrace
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -rf $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/