forked from WoWOriginProjects/WOPCore-6.2.3-FirestormWOD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.drone.yml
87 lines (83 loc) · 2.92 KB
/
.drone.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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
branches:
- master
- ptr
- dev
clone:
depth: 20
tags: true
recursive: true
submodule_update_remote: true
build:
before_build:
image: milleniumstudio/drone-clang-mariadb-ace
pull: true
commands:
- mkdir build
- mkdir dist/bin dist/etc dist/sql dist/sql/characters dist/sql/world dist/sql/hotfix
- cp -p contrib/deploy/run-worldserver dist/bin
- cp -p contrib/deploy/commands.gdb dist/etc
release_asan:
image: milleniumstudio/drone-clang-mariadb-ace
commands:
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="-fsanitize=address -fno-omit-frame-pointer" -DCMAKE_C_FLAGS="-fsanitize=address -fno-omit-frame-pointer" -DWITH_WARNINGS=0 -DWITH_COREDEBUG=0 -DTOOLS=0
- make -j 32
- make install
- make clean
- cd -
- mv /usr/local/bin/worldserver dist/bin/worldserver_RelWithDebInfoAsan
- sed -i "s~@MODE@~testing~g" dist/bin/run-worldserver;
when:
branch: [ptr, dev]
release:
image: milleniumstudio/drone-clang-mariadb-ace
commands:
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="" -DCMAKE_C_FLAGS="" -DWITH_WARNINGS=0 -DWITH_COREDEBUG=0 -DTOOLS=0
- make -j 32
- make install
- make clean
- cd -
- mv /usr/local/bin/worldserver dist/bin/worldserver_RelWithDebInfo
- sed -i "s~@MODE@~normal~g" dist/bin/run-worldserver;
when:
branch: master
release_cross:
image: milleniumstudio/drone-clang-mariadb-ace
commands:
- cd build
- cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_CXX_FLAGS="" -DCMAKE_C_FLAGS="" -DWITH_WARNINGS=0 -DWITH_COREDEBUG=0 -DTOOLS=0 -DCROSS=1
- make -j 32
- make install
- make clean
- cd -
- mv /usr/local/bin/worldserver dist/bin/worldserver_cross_RelWithDebInfo
- sed -i "s~@MODE@~cross~g" dist/bin/run-worldserver;
when:
branch: master
after_build:
image: milleniumstudio/drone-clang-mariadb-ace
commands:
- sed -i "s~@REPO@~$DRONE_REPO~g; s~@COMMIT@~$DRONE_COMMIT~g" dist/bin/run-worldserver;
- cp -rp sql/updates/characters dist/sql
- cp -rp sql/updates/world dist/sql
- cp -rp sql/updates/hotfix dist/sql
publish:
docker:
registry: registry.fat.sh
username: $$FATREGISTRY_USER
password: $$FATREGISTRY_PASSWD
email: [email protected]
repo: firestorm/wod
tag: latest-$$BRANCH
file: dist/Dockerfile
context: dist/
when:
branch: [master, ptr]
notify:
slack:
webhook_url: https://hooks.slack.com/services/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
channel: wow-notification
username: Drone
template: >
Build <{{ system.link_url }}/{{ repo.full_name }}/{{ build.number }}|{{ repo.name }}#{{ truncate build.commit 7 }}> ({{ build.branch }}) by {{ build.author }} finished with a *{{ build.status }}* status in {{ duration build.started_at build.finished_at }}