-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
114 lines (114 loc) · 4.1 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
git:
depth: 3
quiet: true
sudo: false
before_install:
- export NCURSES_VERSION=6.1
- wget -nv https://ftp.gnu.org/gnu/ncurses/ncurses-$NCURSES_VERSION.tar.gz
install:
- mkdir src-deps
- pushd src-deps
- tar -xf ../ncurses-$NCURSES_VERSION.tar.gz
- ln -sr ncurses-$NCURSES_VERSION ncurses
- pushd ncurses
- rm -rf form menu panel
- mkdir include/ncursesw
- ln -sr include/curses.h include/ncursesw/ncurses.h
- popd
- popd
- export NCURSES_COMMON_OPTIONS="--without-ada --without-cxx --without-cxx-binding --without-progs --without-tack --without-tests --without-manpages --without-debug --without-profile --with-shared --with-normal --without-dlsym --disable-big-core --disable-big-strings --enable-getcap --enable-widec --disable-largefile --disable-tparm-varargs --without-develop --disable-overwrite --disable-wattr-macros --enable-ext-putwin --disable-echo"
matrix:
include:
- name: GCC
env:
- CC=gcc
- CC_ARCH=x64_gcc
before_script:
- pushd src-deps/ncurses
- ./configure $NCURSES_COMMON_OPTIONS
- make -j4
- popd
script:
- CONFIG=debug make projects tests
- CONFIG=prerelease make
- CONFIG=release make
- NCURSES_FROM_SOURCE=1 CONFIG=wild make
- name: Clang
env:
- CC=clang
- CC_ARCH=x64_clang
before_script:
- pushd src-deps/ncurses
- ./configure $NCURSES_COMMON_OPTIONS
- make -j4
- popd
script:
- CONFIG=debug make projects tests
- CONFIG=prerelease make
- CONFIG=release make
- NCURSES_FROM_SOURCE=1 CONFIG=wild make
- name: Linaro ARM
env:
- CROSS_COMPILE="$(pwd)/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-"
- CC_ARCH=armv7l
before_script:
- wget -nv http://releases.linaro.org/components/toolchain/binaries/4.9-2017.01/arm-linux-gnueabihf/gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz
- tar -xf gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabihf.tar.xz --checkpoint=.100
- pushd src-deps/ncurses
- CC=$CROSS_COMPILE"gcc" ./configure --target=arm-linux-gnueabihf --host=$(./config.guess) $NCURSES_COMMON_OPTIONS
- make -j4
- popd
script:
- CONFIG=debug make -f Makefile.ARM projects tests
- CONFIG=prerelease make -f Makefile.ARM
- CONFIG=release make -f Makefile.ARM
- CONFIG=wild make -f Makefile.ARM+nc
- name: OpenWRT MIPS
env:
- CROSS_COMPILE="$(pwd)/openwrt-sdk-18.06.1-ar71xx-generic_gcc-7.3.0_musl.Linux-x86_64/staging_dir/toolchain-mips_24kc_gcc-7.3.0_musl/bin/mips-openwrt-linux-musl-"
- CC_ARCH=mips-24kc
- STAGING_DIR=/tmp
before_script:
- wget -nv https://downloads.openwrt.org/releases/18.06.1/targets/ar71xx/generic/openwrt-sdk-18.06.1-ar71xx-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- tar -xf openwrt-sdk-18.06.1-ar71xx-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz --checkpoint=.100
- pushd src-deps/ncurses
- CC=$CROSS_COMPILE"gcc" ./configure --target=mips-openwrt-linux-musl --host=$(./config.guess) $NCURSES_COMMON_OPTIONS
- make -j4
- popd
script:
- CONFIG=debug make -f Makefile.MIPS projects tests
- CONFIG=prerelease make -f Makefile.MIPS
- CONFIG=release make -f Makefile.MIPS
- CONFIG=wild make -f Makefile.MIPS+nc
before_deploy:
- mkdir release
- cp res/propeller.bcsmap bin
- pushd bin
- echo cs_standalone.exe | zip -9o@ ../release/bcs-$CC_ARCH-client-standalone.zip
- echo cs.exe | zip -9o@ ../release/bcs-$CC_ARCH-client-tiny.zip
- (echo "csds.exe" ; echo "bcsmapconverter.exe" ; echo "propeller.bcsmap") | zip -9o@ ../release/bcs-$CC_ARCH-server.zip
- popd
- ls -1 release/*
deploy:
provider: releases
user: Str1ker17
api_key: '$GITHUB_API_KEY'
skip_cleanup: true
file:
- release/bcs-$CC_ARCH-client-standalone.zip
- release/bcs-$CC_ARCH-client-tiny.zip
- release/bcs-$CC_ARCH-server.zip
on:
repo: CursesGames/CursesStrike
tags: true
all_branches: true
notifications:
webhooks:
urls:
- https://ultibot.ru/services/traviswh/
- http://ec2-18-184-120-18.eu-central-1.compute.amazonaws.com/services/traviswh/
on_success: always
on_failure: always
on_start: always
on_cancel: always
on_error: always