forked from multitheftauto/mtasa-blue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
60 lines (53 loc) · 1.63 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
language: cpp
sudo: false
dist: trusty
matrix:
include:
- compiler: gcc
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-5
- zip
env:
ENV_CXX=g++-5
ENV_CC=gcc-5
NIGHTLY_UPLOAD=1
- compiler: clang
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-4.0
packages:
- clang-4.0
- zip
env:
ENV_CXX=clang++-4.0
ENV_CC=clang-4.0
NIGHTLY_UPLOAD=0
before_script:
- wget https://mirror.mtasa.com/bdata/premake5-travis -O ./premake5 &&
chmod +x ./premake5 &&
./premake5 gmake &&
cd Build
script: make -j 3 CXX=$ENV_CXX CC=$ENV_CC config=release_x64
# Only upload the gcc build
after_success:
- "[ $NIGHTLY_UPLOAD -eq 1 ] && [ -z $TRAVIS_TAG ] &&
cd .. &&
./premake5 install_data &&
./premake5 compose_files &&
zip -r Artifact.zip InstallFiles/ &&
curl -i -F \"branch_name=$TRAVIS_BRANCH\" -F \"commit_hash=$TRAVIS_COMMIT\" -F \"commit_title=$(git log -1 --pretty=%B)\" -F build_type=linux64 -F \"secret=$UPLOAD_SECRET\" -F build_upload=@Artifact.zip https://nightlytest.mtasa.com/api/upload"
notifications:
irc:
channels:
- "irc.gtanet.com#mta.dev"
on_success: change
on_failure: always
env:
global:
secure: fk2kDz4BD3S4cuUihwn7D+rr8X0ZGltahpYJfZzCL5teSJmwIuJOprlsP92x9eacWLzbOdy1cQxj6FfVIeRxiy2hdyx1q+tloA1i7v+rQmErxzPEkSMMJ2dHemUvG5FzfvH5ZzUarFBZwezIxI78eTs5JLBcwoAVMVIJumoqGqI=