2016-07-01 16:37:13 +02:00
matrix :
2018-10-01 19:32:53 +02:00
include :
- os : linux
sudo : required
2018-12-14 11:06:10 +01:00
dist : xenial
2018-10-01 19:32:53 +02:00
language : c
env : TARGET=linux
- os : linux
sudo : required
2018-12-14 11:06:10 +01:00
dist : xenial
2018-10-01 19:32:53 +02:00
language : c
env : TARGET=windows
- os : osx
language : c
2018-12-14 11:06:10 +01:00
osx_image : xcode8.3
2018-10-01 19:32:53 +02:00
env : TARGET=osx
2016-07-01 16:37:13 +02:00
cache :
2016-07-29 16:05:42 +02:00
apt : true
2016-07-01 16:37:13 +02:00
ccache : true
directories :
2018-10-01 19:32:53 +02:00
- build
- depends/built
2019-01-14 14:51:43 +01:00
- /tmp/icu_install
2018-12-14 11:06:10 +01:00
git :
depth : false
2016-07-01 16:37:13 +02:00
before_install :
2018-10-01 19:32:53 +02:00
- date +%s > "${TRAVIS_BUILD_DIR}/start_time"
- ls -lh build
- du -h -d 2 build
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew install ccache; fi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then export PATH="/usr/local/opt/ccache/libexec:$PATH"; fi
2016-07-01 08:02:29 +02:00
install : true
2016-07-01 16:37:13 +02:00
script :
2018-10-01 19:32:53 +02:00
- mkdir -p "dist/${TRAVIS_BRANCH}"
2018-12-14 23:21:52 +01:00
- if [[ "${TARGET}" == "osx" ]]; then ./reproducible_build.sh -t -o -r; fi
- if [[ "${TARGET}" == "linux" ]]; then ./reproducible_build.sh -t -o; fi
2018-10-01 19:32:53 +02:00
- if [[ "${TARGET}" == "windows" ]]; then ./packaging/build_windows.sh; fi
- if [[ "${TARGET}" == "osx" ]]; then zip -j "dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip" src/lbrycrdd src/lbrycrd-cli src/lbrycrd-tx; fi
- if [[ "${TARGET}" == "linux" ]]; then zip -j "dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip" src/lbrycrdd src/lbrycrd-cli src/lbrycrd-tx; fi
- if [[ "${TARGET}" == "windows" ]]; then zip -j "dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip" src/lbrycrdd.exe src/lbrycrd-cli.exe src/lbrycrd-tx.exe; fi
- if [[ "${TARGET}" == "osx" ]]; then shasum -a 256 dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip > dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}-sha256.txt; fi
- if [[ "${TARGET}" == "linux" ]]; then sha256sum -b dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip > dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}-sha256.txt; fi
- if [[ "${TARGET}" == "windows" ]]; then sha256sum -b dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip > dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}-sha256.txt; fi
- cat dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}-sha256.txt
2016-07-01 16:37:13 +02:00
before_cache :
2018-10-01 19:32:53 +02:00
- ls -lh build
- du -h -d 2 build
2016-07-06 20:55:21 +02:00
deploy :
2018-10-01 19:32:53 +02:00
- provider : releases
draft : true
file : "dist/${TRAVIS_BRANCH}/lbrycrd-${TARGET}.zip"
name : "${TRAVIS_BRANCH}"
skip_cleanup : true
target_commitish : $TRAVIS_COMMIT
tag_name : $TRAVIS_TAG
on :
tags : true
api_key :
secure : "Ni5WZNR5CefWXpyDUQLMQbQ2LH4Iot+0SqIoM9c4maW06al1M8vu57vWuj2cESsW7JsaBehCE45Cwmo5kWyEjAiZY8sIMmvixkMP/8uPWuLgNmnIbm7U+d0j652DmZshDYtt8EomqV2RhAx/rmBnzGkruLOw9WTp9ZdBN3WbTt/IpZ2gMgVbGWYGOx+uRw7/yGw8m4gShQheto/dycbyyR3XV2WP9wuLmNYkcQ6JumSoQdDWXcvVfbCwylGq2sLDKwhvfTr4iwYyYsWdmhfdEQl0WcIv5C8xgdiY2vzhi2LmLqFbS/fvKNC26Tf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J3dgQPs/opDXoQTJMjud0=
bucket : build.lbry.io
upload-dir : lbrycrd
acl : public_read
local_dir : dist
skip_cleanup : true
on :
repo : lbryio/lbrycrd
all_branches : true