This repository has been archived by the owner on Sep 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
65 lines (57 loc) · 2.07 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: d
matrix:
include:
- {os: linux, d: dmd, env: CONFIG=debug ARCH=x86_64}
- {os: linux, d: ldc, env: CONFIG=debug ARCH=x86_64}
# - {os: linux, d: ldc, env: CONFIG=debug ARCH=x86}
# - {os: linux, d: ldc, env: CONFIG=debug ARCH=arm}
# - {os: linux, d: ldc, env: CONFIG=debug ARCH=aarch64}
- {os: linux, d: ldc, env: CONFIG=release ARCH=x86_64}
# - {os: linux, d: ldc, env: CONFIG=release ARCH=x86}
# - {os: linux, d: ldc, env: CONFIG=release ARCH=arm}
# - {os: linux, d: ldc, env: CONFIG=release ARCH=aarch64}
- {os: osx, d: dmd, env: CONFIG=debug ARCH=x86_64}
- {os: osx, d: ldc, env: CONFIG=debug ARCH=x86_64}
- {os: osx, d: ldc, env: CONFIG=release ARCH=x86_64}
allow_failures:
- os: osx
d: dmd
addons:
apt:
packages:
- gcc-multilib
deploy:
provider: releases
api_key: $API_KEY
file: "selery-${SELERY_VERSION}-${TRAVIS_OS_NAME}-${ARCH}.tar.xz"
skip_cleanup: true
on:
tags: true
condition: $CONFIG == "release" && $DC == "ldc2"
before_install:
- chmod +x build.sh
- mkdir plugins
# - git clone https://github.com/selery-plugins/rcon.git plugins/rcon
- git clone https://github.com/selery-plugins/vanilla.git plugins/vanilla
# - git clone https://github.com/selery-plugins/web-admin.git plugins/web-admin
- git clone https://github.com/selery-plugins/web-view.git plugins/web-view
script:
- ./build.sh -c $DC -a $ARCH $CONFIG hub
- ./build.sh -c $DC -a $ARCH $CONFIG node
- ./build.sh -c $DC -a $ARCH $CONFIG default
after_success:
- ./selery-hub --about
- ./selery-node --about
- ./selery --about
- cd builder/views
- SELERY_VERSION=$(<version.txt)
- cd ../..
- rm -rf assets/icons
- tar -cJf "selery-${SELERY_VERSION}-${TRAVIS_OS_NAME}-${ARCH}.tar.xz" LICENSE selery-hub selery-node selery assets/
- curl -s https://gist.githubusercontent.com/Kripth/e570f715c27d0a345619e2ea881ed97d/raw/ > update.d
- rdmd update.d
after_failure:
- curl -s https://gist.githubusercontent.com/Kripth/e570f715c27d0a345619e2ea881ed97d/raw/ > update.d
- rdmd update.d
notifications:
- email: false