5b113e524c
This is a large commit. Travis has some limitations that the OSX build runs into so a few things needed to change: - travis has a 4mb log limit - log stdout/stderr to log files - cat relevant log file if there is a build issue - travis will kill the job if it is silent for ten minutes - echo messages every minute - travis has a 50 minute job limit - add caching for dependencies - proactively abort a build after 45 minutes to ensure the cache will be populated Caching creates its own set of problems so the ability to clear the dependency folder was added and each dependency will delete its folder if something goes wrong during the build of that dependency. This prevents future runs from thinking a dependency has been cached when it actually hasn't. The build files for OSX and linux were unified into one script.
39 lines
1.4 KiB
YAML
39 lines
1.4 KiB
YAML
matrix:
|
|
include:
|
|
- os: linux
|
|
sudo: required
|
|
dist: trusty
|
|
language: c
|
|
- os: osx
|
|
language: c
|
|
osx_image: xcode7.3
|
|
|
|
cache:
|
|
ccache: true
|
|
directories:
|
|
- build
|
|
|
|
before_install:
|
|
- date +%s > "${TRAVIS_BUILD_DIR}/start_time"
|
|
- ls -lh build
|
|
- du -h -d 2 build
|
|
|
|
install: true
|
|
script:
|
|
- ./reproducible_build.sh -t -o -c
|
|
- if [[ "${TRAVIS_OS_NAME}" = "linux" ]]; then zip -j lbrycrd-linux.zip src/lbrycrdd src/lbrycrd-cli src/lbrycrd-tx; fi
|
|
|
|
before_cache:
|
|
- ls -lh build
|
|
- du -h -d 2 build
|
|
|
|
deploy:
|
|
- provider: releases
|
|
file: lbrycrd-linux.zip
|
|
skip_cleanup: true
|
|
on:
|
|
tags: true
|
|
condition: "$TRAVIS_OS_NAME = linux"
|
|
api_key:
|
|
secure: "ibN+PQg84f0tgJLV3KaHjkHmgFNOPqBLIrSU42moen22xxT2VIn0j7DkFaLLts1fs/+/gxmrvhOQ0vUFJqmflZ3kCeyedP/CVgZz7D7HRVK0cYUMJ2F9VWMZAFIX6A67OUlypqZqzKAKrZHx3HXky6Z8NBU23JgWqDm8PcrbbgMLvB2lvWVASjJVKreaL9BOxFOOOrAj6xAIm9ogTOnFVI/AhufNOKOTZaiprcbqMngwHeaILbwEJVqv5P2YUurC6Sq+QaH26tX00DtsYOW+n8AA3Fe48+L6rqa6Q8ru+dhPuR/Apr2+DTZ+npzY8leV3A7mYUeLo4JLaEH6n1TLVt65cX7nuesS7KsSKBSxs7q7bsqeapDcMskZz5JR4EK4S96CuHZEnn6+efpH8IrxWpbeO3EibJfyT8tMJKw7Zym5mPr+sz6xSlVMoBVcCm+7z9e7Zcqukdvdy8jM7sGP9qusqEhpojh0o+gPgr9p13SfR+6OCpj9gwxPCnZO8RBfh1cbz9vFSVlDyUYcpI2CCCpPazA1glTsEDk+VtznnUMmWksXWfxBFV81jQB2SnoZKlnsiEuNMwhiMCMEkRFo74+AsUr2UjmKJ5KC8ACwsn475PoLZBh2J6fyXBHMdbrGfK+Zt5K2IHRRtDaZVT4eHqYzxh8KhalsuBNxCo3FygI="
|
|
|