forked from OpenBW/BWAPI4J
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
41 lines (34 loc) · 941 Bytes
/
.travis.yml
File metadata and controls
41 lines (34 loc) · 941 Bytes
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
language: java
jdk:
- oraclejdk8
os:
- linux
#- osx
addons:
# sonarcloud:
# branches:
# - dev
# - master
cache:
directories:
- '$HOME/.m2/repository'
- '$HOME/.sonar/cache'
- '$HOME/.gradle'
- '.gradle'
env:
- TERM=dumb
before_install:
- 'if [ ${TRAVIS_OS_NAME} = "linux" ]; then
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test &&
sudo apt-get update -qq &&
sudo apt-get -y install g++-6 &&
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90 &&
sudo apt-get -y install libsdl2-dev libegl1-mesa-dev libgles2-mesa-dev;
elif [ ${TRAVIS_OS_NAME} = "osx" ]; then
echo "OSX not yet supported";
exit 1;
fi'
script:
- ROOT_PROJ_DIR=$(pwd)
- BWAPI4J_DIR=$ROOT_PROJ_DIR/BWAPI4J
- cd $BWAPI4J_DIR && ./gradlew clean build buildOpenBWBridgeForLinux --stacktrace && cd $BWAPI4J_DIR && ./gradlew sourcesJar javadocJar shadowJar --stacktrace