123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- #filename:.travis.yml
- dist: trusty
- sudo: false
- cache:
- bundler: true
- directories:
- - cache/
- notifications:
- email: false
- language: c
- compiler: gcc
- env:
- global:
- - PACKAGE=vlmcsd
- - USER=cokebar
- - REPO=openwrt-vlmcsd
- matrix:
- - OSVER=OpenWrt SDK_URL=https://downloads.openwrt.org/chaos_calmer/15.05.1/ar71xx/generic/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2
- - OSVER=LEDE SDK_URL=https://downloads.lede-project.org/releases/17.01.1/targets/ar71xx/nand/lede-sdk-17.01.1-ar71xx-nand_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz
- - OSVER=OpenWrt SDK_URL=https://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/OpenWrt-SDK-15.05.1-ramips-mt7620_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2
- - OSVER=LEDE SDK_URL=https://downloads.lede-project.org/releases/17.01.1/targets/ramips/mt7620/lede-sdk-17.01.1-ramips-mt7620_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz
- - OSVER=OpenWrt SDK_URL=https://downloads.openwrt.org/chaos_calmer/15.05.1/brcm63xx/generic/OpenWrt-SDK-15.05.1-brcm63xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2
- - OSVER=LEDE SDK_URL=https://downloads.lede-project.org/releases/17.01.1/targets/brcm63xx/generic/lede-sdk-17.01.1-brcm63xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz
- - OSVER=OpenWrt SDK_URL=https://downloads.openwrt.org/chaos_calmer/15.05.1/bcm53xx/generic/OpenWrt-SDK-15.05.1-bcm53xx_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64.tar.bz2
- - OSVER=LEDE SDK_URL=https://downloads.lede-project.org/releases/17.01.1/targets/bcm53xx/generic/lede-sdk-17.01.1-bcm53xx_gcc-5.4.0_musl-1.1.16_eabi.Linux-x86_64.tar.xz
- - OSVER=OpenWrt SDK_URL=https://downloads.openwrt.org/chaos_calmer/15.05.1/brcm47xx/generic/OpenWrt-SDK-15.05.1-brcm47xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2
- - OSVER=LEDE SDK_URL=https://downloads.lede-project.org/releases/17.01.1/targets/brcm47xx/generic/lede-sdk-17.01.1-brcm47xx-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz
- - OSVER=OpenWrt SDK_URL=https://downloads.openwrt.org/chaos_calmer/15.05.1/mvebu/generic/OpenWrt-SDK-15.05.1-mvebu_gcc-4.8-linaro_uClibc-0.9.33.2_eabi.Linux-x86_64.tar.bz2
- - OSVER=LEDE SDK_URL=https://downloads.lede-project.org/releases/17.01.1/targets/mvebu/generic/lede-sdk-17.01.1-mvebu_gcc-5.4.0_musl-1.1.16_eabi.Linux-x86_64.tar.xz
- - OSVER=OpenWrt SDK_URL=https://downloads.openwrt.org/chaos_calmer/15.05.1/x86/generic/OpenWrt-SDK-15.05.1-x86-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2
- - OSVER=LEDE SDK_URL=https://downloads.lede-project.org/releases/17.01.1/targets/x86/generic/lede-sdk-17.01.1-x86-generic_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz
- - OSVER=OpenWrt SDK_URL=https://downloads.openwrt.org/chaos_calmer/15.05.1/x86/64/OpenWrt-SDK-15.05.1-x86-64_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64.tar.bz2
- - OSVER=LEDE SDK_URL=https://downloads.lede-project.org/releases/17.01.1/targets/x86/64/lede-sdk-17.01.1-x86-64_gcc-5.4.0_musl-1.1.16.Linux-x86_64.tar.xz
- install:
- - mkdir -p $TRAVIS_BUILD_DIR/local ; cd $TRAVIS_BUILD_DIR/local
- - wget "http://us.archive.ubuntu.com/ubuntu/pool/main/c/ccache/ccache_3.3.3-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
- - if [ "$OSVER" = "OpenWrt" ]; then tar xjf $FILE && SDK_DIR="OpenWrt-SDK-*"; elif [ "$OSVER" = "LEDE" ]; then tar Jxf $FILE && SDK_DIR="lede-sdk-*"; fi
- - 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"
- before_deploy: git fetch --tags
- deploy:
- provider: releases
- api_key:
- secure: "mFIoatnORrXkwNmNa9bsaWurutMhwAtDB0BS1PGQIVIpBJpnaqcYgwE4kxQ9GCbvjm3u308gUKr+iWiO9LDhUn+Gu9uTZvf79g17/nt85EGxqL5Xoyby2IXh/j4JSQnLiqIoRvutayQ+a0oTD/AUv3B/WhclvJpNplkkE3d6ryHXe7SDsuz1HDiO7vLlHQYTo6c+4eIfPxLjkodjcwiZnzAgQ+vzjn6NLVAKextfLslGDhyvxdtZeTSHgpGOv9pKT6OdbCKslDqy198yYIGifUydlvOKdc6WRBgITypXBntZ4FK1Z0eThqhqXPUVGaIs2UZ2+wyAXczKRrlOtXtr6vLyGGqcyhAy32ly32HJ3mVZAEMqeti4+ZsVWq4QhFTDxQt1ar5qdmUEVScPxw4Dg+ByQmkGo+QWd9BYh9appa1540vyLfDkc28wAOo8fsvhXVaNp7pKCCeD8z5Tfl2qeMasR5Vz2s+EtL9wu9V+jQzdFqese7G1NTb+3lVgk/ZqW9Q+pnKwYohykFnfPtK+vlQCi1JWgC5elIFMdmNEfflCDeqayTdCrtLJzFXZFdbaxJ6INqTpiPXK5DpRum28XiUmo9nFXPqtoDUu9vcmd92AZZfApSgmMk+Efis3y6288qpFsKk/zBO7DVpsGMiEIKrjgZbgL+nOXwV4Q6ynhnc="
- skip_cleanup: true
- file_glob: true
- file: "$TRAVIS_BUILD_DIR/*.ipk"
- on:
- tags: true
- all_branches: true
|