forked from hiboyhiboy/rt-n56u
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (59 loc) · 2.56 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
os: linux
dist: focal
arch: arm64-graviton2
virt: lxd
group: edge
language: c
compiler:
- gcc
addons:
apt:
packages:
- fakeroot
- p7zip-full
- libtool-bin
- gperf
- texinfo
- python-docutils
- autopoint
- shellcheck
- cpio
- libltdl-dev
- gettext
before_script:
- "./trunk/tools/shellcheck.sh"
- mkdir -p /opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x && mkdir -p /opt/images/
- rm -rf toolchain-mipsel/ && mv -f * .[^.]* /opt/rt-n56u
- curl -LO $toolchain_url && tar -xf $toolchain_pkg -C /opt/rt-n56u/toolchain-mipsel/toolchain-3.4.x
- ls -Alh /opt/rt-n56u && cd /opt/rt-n56u/trunk/
script:
- for m in $targets; do fakeroot ./build_firmware_ci $m;
if [ $? = 0 ]; then cp -f images/*.trx /opt/images/$m.trx; else exit 1; fi;
./clear_tree_simple >/dev/null 2>&1; done
after_script:
- GIT_VERSION=`git rev-parse --short=7 HEAD 2>/dev/null` && [ -n "$GIT_VERSION" ]
&& image_name=images_${build_variant}_${GIT_VERSION} || image_name=images_${build_variant}
- cd /opt/images; md5sum *.trx |tee md5sum.txt; 7z a -mx=9 ${image_name}.7z ./*
- curl -m 120 -F file=@${image_name}.7z https://file.io/?expires=3d ; echo
env:
jobs:
- build_variant=mt7621 targets="K2P_nano K2P_nano-5.0 K2P-5.0 DIR-878-5.0 WDR7300 RM2100"
- build_variant=mt7628 targets="HC5861B MI-NANO MZ-R13 MZ-R13P 360P2 HC5761A HC5661A"
- build_variant=mt7620 targets="PSG1208 PSG1218 NEWIFI-MINI MI-MINI MI-3 OYE-001"
- build_variant=mt7621-usb targets="JCG-836PRO-5.0 JCG-AC860M-5.0 DIR-882-5.0 A3004NS MSG1500 WR1200JS MI-R3G NEWIFI3 B70"
global:
- toolchain_pkg="aarch64_mipsel-linux-uclibc.tar.xz"
- toolchain_url="https://github.com/hanwckf/padavan-toolchain/releases/download/v1.1/$toolchain_pkg"
git:
depth: 3
deploy:
provider: releases
token:
secure: ptWK6UVr2VVg5ohntO7bj8njsgu2GP/7QTCtonrD4qtqoajXCKq57KorBlFyl8QQ8MF1ZX8J48D7UJ5Ob5vGrTOFJagBZw89rE0rwDQziNjHvHWbBhUzJyjEMlPOoT1c3xq6bYN7v26HvIcj3xNjXalXQk4oTSwSsgsceYRXfs6ZRi312H+J4KdhOnt25Vku0c2XwteeuDGSEuUriuT45JmXcbU7xYU7DnBZK0JKBWE6GsK1ppqUP6EV/5SJTLlOSg59Hq6m0iCVf6bKbdlFL3Z9YSWlxV2KilrorqpiA2YnJgTkz/nbbQx/k4x41eFbQZ4DaecOHGxTmuq0N1aaB1G67BdmX0Wjcg2Re+k3XQPAe0xkeTwJDD8iNNxBr+k4dywidCOEcjuUNM879Yn4eBL/Cx6rjWmUcRRV4dYDlIQPsRWFC/sFFzlg3kTiGzEofKDkIYZwxIOeM+YAj5ROeWOVKZJvvGUZLTGkXG0Pds/Leu2LEg4u72CVOSme4NX1RyLHH7GqH6wnTovXAg7FzHcWVB1JK6+al+9ikLwu6bh1UL5+eUIIGXFfgu2BH9k28fLMje8JRCwo5ecIkgAxaKoGqbieBbXsCVVAwOVz+N5BIRjoVnEWjx+CV8BHe92HsDUvrJ1J0NvwbKUr16GJoQ+iKXurwGM+WfNJADMfBQA=
skip_cleanup: true
overwrite: true
file_glob: true
file: "/opt/images/*.trx"
on:
repo: hanwckf/rt-n56u
tags: true