This repository has been archived by the owner on Apr 8, 2024. It is now read-only.
forked from mchome/openwrt-vlmcsd
-
Notifications
You must be signed in to change notification settings - Fork 117
/
.travis.yml
executable file
·63 lines (63 loc) · 3.71 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
#filename:.travis.yml
dist: xenial
sudo: false
cache:
bundler: true
directories:
- cache/
notifications:
email: false
language: c
compiler: gcc
env:
global:
- PACKAGE=vlmcsd
- GH_USER=cokebar
- GH_REPO=openwrt-vlmcsd
matrix:
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/ar71xx/nand/openwrt-sdk-18.06.8-ar71xx-nand_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/ramips/mt7620/openwrt-sdk-18.06.8-ramips-mt7620_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/brcm63xx/generic/openwrt-sdk-18.06.8-brcm63xx-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/bcm53xx/generic/openwrt-sdk-18.06.8-bcm53xx_gcc-7.3.0_musl_eabi.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/brcm47xx/generic/openwrt-sdk-18.06.8-brcm47xx-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/mvebu/cortexa9/openwrt-sdk-18.06.8-mvebu-cortexa9_gcc-7.3.0_musl_eabi.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/mvebu/cortexa53/openwrt-sdk-18.06.8-mvebu-cortexa53_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/mvebu/cortexa72/openwrt-sdk-18.06.8-mvebu-cortexa72_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/x86/generic/openwrt-sdk-18.06.8-x86-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/x86/64/openwrt-sdk-18.06.8-x86-64_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/kirkwood/generic/openwrt-sdk-18.06.8-kirkwood_gcc-7.3.0_musl_eabi.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/brcm2708/bcm2708/openwrt-sdk-18.06.8-brcm2708-bcm2708_gcc-7.3.0_musl_eabi.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/brcm2708/bcm2709/openwrt-sdk-18.06.8-brcm2708-bcm2709_gcc-7.3.0_musl_eabi.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/mpc85xx/generic/openwrt-sdk-18.06.8-mpc85xx-generic_gcc-7.3.0_musl.Linux-x86_64.tar.xz
- SDK_URL=https://downloads.openwrt.org/releases/18.06.8/targets/ipq806x/generic/openwrt-sdk-18.06.8-ipq806x_gcc-7.3.0_musl_eabi.Linux-x86_64.tar.xz
install:
- mkdir -p $TRAVIS_BUILD_DIR/local ; cd $TRAVIS_BUILD_DIR/local
- wget "http://archive.ubuntu.com/ubuntu/pool/main/c/ccache/ccache_3.7.7-1_amd64.deb"
- dpkg -x *.deb .
- mkdir -p $TRAVIS_BUILD_DIR/cache ; cd $TRAVIS_BUILD_DIR/cache
- wget -c $SDK_URL
- mkdir -p $TRAVIS_BUILD_DIR/sdk ; cd $TRAVIS_BUILD_DIR/sdk
- export FILE=$TRAVIS_BUILD_DIR/cache/$(basename $SDK_URL)
- file $FILE
- tar Jxf $FILE && SDK_DIR="openwrt-sdk-*"
- cd $TRAVIS_BUILD_DIR/sdk/$SDK_DIR
- mkdir package/$PACKAGE
- ln -s $TRAVIS_BUILD_DIR/Makefile package/$PACKAGE/
- ln -s $TRAVIS_BUILD_DIR/files package/$PACKAGE/
script:
- export PATH=$TRAVIS_BUILD_DIR/local/usr/bin:$PATH
- cd $TRAVIS_BUILD_DIR/sdk/$SDK_DIR
- export SDK_DIR=$(basename `pwd`)
- export PATH=$TRAVIS_BUILD_DIR/sdk/$SDK_DIR/staging_dir/host/bin:$PATH
- pushd staging_dir/toolchain-*
- TOOLCHAIN_DIR=$(basename `pwd`)
- export PATH=$TRAVIS_BUILD_DIR/sdk/$SDK_DIR/staging_dir/$TOOLCHAIN_DIR/bin:$PATH
- popd
- ./scripts/feeds update packages >/dev/null
- make defconfig
- make package/vlmcsd/compile V=s
- find $TRAVIS_BUILD_DIR/sdk/$SDK_DIR/bin/
- find . -name *vlmcsd*.ipk -exec cp {} $TRAVIS_BUILD_DIR \;
- cd $TRAVIS_BUILD_DIR/
- chmod a+x $TRAVIS_BUILD_DIR/deploy.sh
after_success: "$TRAVIS_BUILD_DIR/deploy.sh"