.travis.yml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #filename:.travis.yml
  2. dist: trusty
  3. sudo: false
  4. cache:
  5. bundler: true
  6. directories:
  7. - cache/
  8. notifications:
  9. email: false
  10. language: c
  11. compiler: gcc
  12. env:
  13. global:
  14. - PACKAGE=vlmcsd
  15. - USER=cokebar
  16. - REPO=openwrt-vlmcsd
  17. matrix:
  18. - 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
  19. - 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
  20. - 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
  21. - 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
  22. - 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
  23. - 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
  24. - 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
  25. - 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
  26. - 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
  27. - 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
  28. - 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
  29. - 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
  30. - 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
  31. - 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
  32. - 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
  33. - 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
  34. install:
  35. - mkdir -p $TRAVIS_BUILD_DIR/local ; cd $TRAVIS_BUILD_DIR/local
  36. - wget "http://us.archive.ubuntu.com/ubuntu/pool/main/c/ccache/ccache_3.3.3-1_amd64.deb"
  37. - dpkg -x *.deb .
  38. - mkdir -p $TRAVIS_BUILD_DIR/cache ; cd $TRAVIS_BUILD_DIR/cache
  39. - wget -c $SDK_URL
  40. - mkdir -p $TRAVIS_BUILD_DIR/sdk ; cd $TRAVIS_BUILD_DIR/sdk
  41. - export FILE=$TRAVIS_BUILD_DIR/cache/$(basename $SDK_URL)
  42. - file $FILE
  43. - if [ "$OSVER" = "OpenWrt" ]; then tar xjf $FILE && SDK_DIR="OpenWrt-SDK-*"; elif [ "$OSVER" = "LEDE" ]; then tar Jxf $FILE && SDK_DIR="lede-sdk-*"; fi
  44. - cd $TRAVIS_BUILD_DIR/sdk/$SDK_DIR
  45. - mkdir package/$PACKAGE
  46. - ln -s $TRAVIS_BUILD_DIR/Makefile package/$PACKAGE/
  47. - ln -s $TRAVIS_BUILD_DIR/files package/$PACKAGE/
  48. script:
  49. - export PATH=$TRAVIS_BUILD_DIR/local/usr/bin:$PATH
  50. - cd $TRAVIS_BUILD_DIR/sdk/$SDK_DIR
  51. - export SDK_DIR=$(basename `pwd`)
  52. - export PATH=$TRAVIS_BUILD_DIR/sdk/$SDK_DIR/staging_dir/host/bin:$PATH
  53. - pushd staging_dir/toolchain-*
  54. - TOOLCHAIN_DIR=$(basename `pwd`)
  55. - export PATH=$TRAVIS_BUILD_DIR/sdk/$SDK_DIR/staging_dir/$TOOLCHAIN_DIR/bin:$PATH
  56. - popd
  57. - ./scripts/feeds update packages >/dev/null
  58. - make defconfig
  59. - make package/vlmcsd/compile V=s
  60. - find $TRAVIS_BUILD_DIR/sdk/$SDK_DIR/bin/
  61. - find . -name *vlmcsd*.ipk -exec cp {} $TRAVIS_BUILD_DIR \;
  62. - cd $TRAVIS_BUILD_DIR/
  63. - chmod a+x $TRAVIS_BUILD_DIR/deploy.sh
  64. after_success: "$TRAVIS_BUILD_DIR/deploy.sh"
  65. before_deploy: git fetch --tags
  66. deploy:
  67. provider: releases
  68. api_key:
  69. secure: "mFIoatnORrXkwNmNa9bsaWurutMhwAtDB0BS1PGQIVIpBJpnaqcYgwE4kxQ9GCbvjm3u308gUKr+iWiO9LDhUn+Gu9uTZvf79g17/nt85EGxqL5Xoyby2IXh/j4JSQnLiqIoRvutayQ+a0oTD/AUv3B/WhclvJpNplkkE3d6ryHXe7SDsuz1HDiO7vLlHQYTo6c+4eIfPxLjkodjcwiZnzAgQ+vzjn6NLVAKextfLslGDhyvxdtZeTSHgpGOv9pKT6OdbCKslDqy198yYIGifUydlvOKdc6WRBgITypXBntZ4FK1Z0eThqhqXPUVGaIs2UZ2+wyAXczKRrlOtXtr6vLyGGqcyhAy32ly32HJ3mVZAEMqeti4+ZsVWq4QhFTDxQt1ar5qdmUEVScPxw4Dg+ByQmkGo+QWd9BYh9appa1540vyLfDkc28wAOo8fsvhXVaNp7pKCCeD8z5Tfl2qeMasR5Vz2s+EtL9wu9V+jQzdFqese7G1NTb+3lVgk/ZqW9Q+pnKwYohykFnfPtK+vlQCi1JWgC5elIFMdmNEfflCDeqayTdCrtLJzFXZFdbaxJ6INqTpiPXK5DpRum28XiUmo9nFXPqtoDUu9vcmd92AZZfApSgmMk+Efis3y6288qpFsKk/zBO7DVpsGMiEIKrjgZbgL+nOXwV4Q6ynhnc="
  70. skip_cleanup: true
  71. file_glob: true
  72. file: "$TRAVIS_BUILD_DIR/*.ipk"
  73. on:
  74. tags: true
  75. all_branches: true