diff --git a/.travis.yml b/.travis.yml index fa76cb0..aeca3bb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,30 +18,43 @@ install: - go get github.com/gordonklaus/ineffassign - go get github.com/client9/misspell/cmd/misspell script: -# - ineffassign $(glide novendor) -# - misspell -source go -i Unknwon $(glide novendor) -# - go vet $(glide novendor) - cd ${TRAVIS_BUILD_DIR}/cmd && go generate && cd ${TRAVIS_BUILD_DIR} - VERSION=$(cat ./VERSION) - echo "VERSION = ${VERSION}" - DIST=${TRAVIS_BUILD_DIR}/dist/rai/stable -- CGO_ENABLED=0 gox -verbose -ldflags="$(govvv -flags)" -parallel=4 -ldflags="-s -w" -os="linux darwin windows" -arch="amd64 386 armv5 armv6 armv7 arm64" -osarch="!darwin/arm64 linux/ppc64 linux/ppc64le" -ldflags="-X github.com/rai-project/rai/cmd.appsecret=\"${APP_SECRET}\"" -ldflags "-extldflags \"-static\"" -output="${DIST}/${VERSION}/{{.OS}}-{{.Arch}}/{{.Dir}}" . +- CGO_ENABLED=0 gox -verbose -ldflags="$(govvv -flags)" -parallel=4 -ldflags="-s -w" + -os="linux darwin windows" -arch="amd64 386 armv5 armv6 armv7 arm64" -osarch="!darwin/arm64 + linux/ppc64 linux/ppc64le" -ldflags="-X github.com/rai-project/rai/cmd.appsecret=\"${APP_SECRET}\"" + -ldflags "-extldflags \"-static\"" -output="${DIST}/${VERSION}/{{.OS}}-{{.Arch}}/{{.Dir}}" + . before_deploy: - echo "go-selfupdate generating bindiffs" - mkdir -p ${DIST}/${VERSION}/binaries - mkdir -p ${DIST}/latest -- tar czvf ${DIST}/${VERSION}/binaries/darwin-386 ${DIST}/${VERSION}/darwin-386/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/darwin-amd64 ${DIST}/${VERSION}/darwin-amd64/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/linux-386 ${DIST}/${VERSION}/linux-386/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/linux-amd64 ${DIST}/${VERSION}/linux-amd64/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/linux-armv5 ${DIST}/${VERSION}/linux-armv5/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/linux-armv6 ${DIST}/${VERSION}/linux-armv6/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/linux-armv7 ${DIST}/${VERSION}/linux-armv7/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/linux-arm64 ${DIST}/${VERSION}/linux-arm64/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/linux-ppc64 ${DIST}/${VERSION}/linux-ppc64/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/linux-ppc64le ${DIST}/${VERSION}/linux-ppc64le/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/windows-386 ${DIST}/${VERSION}/windows-386/rai.exe ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION -- tar czvf ${DIST}/${VERSION}/binaries/windows-amd64 ${DIST}/${VERSION}/windows-amd64/rai.exe ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/darwin-386 ${DIST}/${VERSION}/darwin-386/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/darwin-amd64 ${DIST}/${VERSION}/darwin-amd64/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/linux-386 ${DIST}/${VERSION}/linux-386/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/linux-amd64 ${DIST}/${VERSION}/linux-amd64/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/linux-armv5 ${DIST}/${VERSION}/linux-armv5/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/linux-armv6 ${DIST}/${VERSION}/linux-armv6/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/linux-armv7 ${DIST}/${VERSION}/linux-armv7/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/linux-arm64 ${DIST}/${VERSION}/linux-arm64/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/linux-ppc64 ${DIST}/${VERSION}/linux-ppc64/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/linux-ppc64le ${DIST}/${VERSION}/linux-ppc64le/rai ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/windows-386 ${DIST}/${VERSION}/windows-386/rai.exe ${TRAVIS_BUILD_DIR}/LICENSE.TXT + ${TRAVIS_BUILD_DIR}/VERSION +- tar czvf ${DIST}/${VERSION}/binaries/windows-amd64 ${DIST}/${VERSION}/windows-amd64/rai.exe + ${TRAVIS_BUILD_DIR}/LICENSE.TXT ${TRAVIS_BUILD_DIR}/VERSION - go-selfupdate -o ${DIST}/updates ${DIST}/${VERSION}/binaries/ ${VERSION} - cp ${DIST}/${VERSION}/binaries/darwin-386 ${DIST}/latest/darwin-386.tar.gz - cp ${DIST}/${VERSION}/binaries/darwin-amd64 ${DIST}/latest/darwin-amd64.tar.gz @@ -78,3 +91,4 @@ env: global: - secure: nraNQWDBUedfvUaAFm3el9DS6vFmM0lO+yswdxV7hCUcnthAofA0bmap/v1CRzxZN6yQ4AnvC7yaHgHWoCzDa4T68iFwrDB1/RHnVy/pHAyp89WsyIvij9QSeNUGk6LIkfMWTG+lktEEfWpi3TiAcBTR120R6Lyycr7de87sZCp0xN9xDZV/Ik5VpIOLnkug8OKOrnj1HQeRdcW7rbeywzWDq1orZ2kplxFzgtWHeITL1C1c7U6KuGgAKTr3wegOadZezfPQQbfbbPFhGy+cyOO4YwidgiR59aR+M43p76jccH/BRm950YOl7KqHK8MzjrBuomKMYCnGvMRImJ1C8o+BMQlYHY1SjkFSvlA7kfDrpAiCUVfBfE828eta1ICBDG4EInLJK2hwh6eSYyWkjWs090R9itrN5k9Ufua9F0PyDE9G26Ju2rX/MGAtVDIg/L14A3QZMPwG6jLvuxJXQjX8EboaPYOmi0Oe2UVXx/2xC07htJYrAUzrll84janUDPEx56W0XNZXdWL1AjHEUbZHuDOC3eIaBZtZ55ty0O3cn0X79ZwBy+W8i3amfUHc2JlD2M6PspkEpp6HLsU1BIsUw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