mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-19 21:07:18 +00:00

This commit installs `node-usb` v1.3.0 from GitHub, since that version was never published to NPM, and is the only one that works with Visual Studio 2015 (see https://github.com/tessel/node-usb/issues/109). The usbboot communicates with a Raspberry Pi / Amber through USB and eventually mounts it as a block device we can write to. This feature bundles bootcode.bin and start.elf from the original usbboot implementation. The flow is the following: - On each scan, the usbboot scanner will try to get a usbboot compatible USB device to the next "phase", until they are all transformed to block devices the user can flash to as usual Change-Type: minor Changelog-Entry: Integrate Raspberry Pi's usbboot technology. Fixes: https://github.com/resin-io/etcher/issues/1541 See: https://github.com/raspberrypi/usbboot Signed-off-by: Juan Cruz Viotti <jv@jviotti.com>
82 lines
1.5 KiB
YAML
82 lines
1.5 KiB
YAML
language: node_js
|
|
sudo: false
|
|
node_js:
|
|
- "6.10.3"
|
|
|
|
# Remove wine from cache
|
|
before_cache:
|
|
- rm -rf $HOME/.cache/electron-builder/wine
|
|
|
|
cache:
|
|
ccache: true
|
|
directories:
|
|
- $HOME/.cache/electron
|
|
- $HOME/.cache/electron-builder
|
|
- $HOME/.npm/_prebuilds
|
|
- $HOME/Library/Caches/electron
|
|
- $HOME/Library/Caches/electron-builder
|
|
- $HOME/.pkg-cache
|
|
- node_modules
|
|
|
|
services:
|
|
- docker
|
|
|
|
addons:
|
|
apt:
|
|
sources:
|
|
- ubuntu-toolchain-r-test
|
|
packages:
|
|
- libstdc++-6-dev
|
|
|
|
env:
|
|
global:
|
|
- CCACHE_TEMPDIR=/tmp/.ccache-temp
|
|
- CCACHE_COMPRESS=1
|
|
- CC="clang"
|
|
- CXX="clang++"
|
|
- HOMEBREW_NO_AUTO_UPDATE=1
|
|
matrix:
|
|
- TARGET_ARCH=x64
|
|
- TARGET_ARCH=x86
|
|
|
|
matrix:
|
|
fast_finish: true
|
|
exclude:
|
|
- os: osx
|
|
env: TARGET_ARCH=x86
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
before_install:
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then PATH=/usr/local/opt/ccache/libexec:$PATH; fi
|
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
|
|
export HOST_OS="darwin";
|
|
else
|
|
export HOST_OS="$TRAVIS_OS_NAME";
|
|
fi
|
|
|
|
install:
|
|
- ./scripts/ci/install.sh -o $HOST_OS -r $TARGET_ARCH
|
|
|
|
script:
|
|
- ./scripts/ci/test.sh -o $HOST_OS -r $TARGET_ARCH
|
|
- ./scripts/ci/build-installers.sh -o $HOST_OS -r $TARGET_ARCH
|
|
|
|
deploy:
|
|
provider: script
|
|
skip_cleanup: true
|
|
script: scripts/ci/deploy.sh -o $HOST_OS -r $TARGET_ARCH
|
|
on:
|
|
branch: master
|
|
|
|
notifications:
|
|
email: false
|
|
webhooks:
|
|
urls:
|
|
- https://webhooks.gitter.im/e/0a019c8b9828eb9f6a72
|
|
on_success: change
|
|
on_failure: always
|
|
on_start: never
|