-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
38 lines (31 loc) · 1.11 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
language: minimal
env:
global:
- SAMP_SDK_ROOT=$TRAVIS_BUILD_DIR/samp-plugin-sdk
before_install:
- sudo dpkg --add-architecture i386
install:
- sudo add-apt-repository -y ppa:openjdk-r/ppa
- sudo apt-get update
- sudo apt-get install openjdk-8-jdk-headless:i386
- sudo update-java-alternatives -s java-1.8.0-openjdk-i386
- sudo apt-get install -y gcc-multilib g++-multilib cmake python-pip
- sudo pip install ply
- git clone --depth 1 https://github.com/Zeex/samp-plugin-sdk.git samp-plugin-sdk
- git clone --depth 1 https://github.com/Zeex/sampgdk.git sampgdk
before_script:
- java -version
- cd sampgdk && mkdir build && cd build
- cmake .. -DSAMPGDK_STATIC=OFF -DSAMPGDK_BUILD_PLUGINS=OFF -DSAMPGDK_BUILD_DOCS=OFF
- cmake --build . --config Release
- sudo cmake --build . --config Release --target install
- cd ../../
script:
- ./gradlew clean build codacyCoverageReport --scan -s
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/