Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update develop from master #357

Open
wants to merge 12 commits into
base: develop
Choose a base branch
from
Open
201 changes: 101 additions & 100 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,73 +1,100 @@
sudo: required
language: go
go:
- 1.12.6
- 1.12.6
services:
- docker
- xvfb
- docker
- xvfb
go_import_path: github.com/fibercrypto/fibercryptowallet
cache:
directories:
- $GOPATH/src/github.com/therecipe
- $GOPATH/bin
- "$GOPATH/src/github.com/therecipe"
- "$GOPATH/bin"
env:
global:
- XARGS="-screen 0 1024x768x24"

- XARGS="-screen 0 1024x768x24"
matrix:
include:
- stage: RPI
if: branch = release*$
install:
- DEFAULT_ARCH=rpi1 make install-docker-deps
- DEFAULT_ARCH=rpi2 make install-docker-deps
- DEFAULT_ARCH=rpi3 make install-docker-deps
- make install-deps-no-envs
script:
- make clean
- DEFAULT_TARGET=rpi1 make build-docker
- DEFAULT_TARGET=rpi2 make build-docker
- DEFAULT_TARGET=rpi3 make build-docker
- make lint
- make run-docker CMD='make test'
- stage: Android
if: branch = release*$
install:
- DEFAULT_ARCH=android make install-docker-deps
- make install-deps-no-envs
script:
- make clean
- DEFAULT_TARGET=android make build-docker
- DEFAULT_TARGET=android-emulator make build-docker
- make lint
- make run-docker CMD='make test'
- make run-docker CMD='make install coveralls ; make test-cover-travis'
- stage: Linux
before_install:
- source ./ci-scripts/install-$TRAVIS_OS_NAME.sh
install:
- make install-docker-deps
- make install-deps-no-envs
- make install-linters
before_script:
- echo "PATH=$PATH";
- echo "PIP=$PIP";
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet clean
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet/tiny-firmware/protob install-deps-nanopb
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet/tiny-firmware/protob/nanopb/vendor/nanopb/generator/proto
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet emulator
- make -C ./tmp/hardware-wallet run-emulator & true;
# Run self-tests
- ps aux | grep emulator

script:
- make clean
- DEFAULT_TARGET=linux make build-docker
- make clean
- make run-docker CMD='make test'
- make run-docker CMD='make test-skyhw'
- make lint
- make run-docker CMD='make install-coveralls ; make test-cover-travis'
- stage: RPI
if: branch = release*$
install:
- export D_ARCH="RPI"
- DEFAULT_ARCH=rpi1 make install-docker-deps
- DEFAULT_ARCH=rpi2 make install-docker-deps
- DEFAULT_ARCH=rpi3 make install-docker-deps
- make install-deps-no-envs
script:
- make clean
- DEFAULT_TARGET=rpi1 make build-docker
- DEFAULT_TARGET=rpi2 make build-docker
- DEFAULT_TARGET=rpi3 make build-docker
- make lint
- make run-docker CMD='make test'
- stage: Android
if: branch = release*$
install:
- export D_ARCH="Android"
- DEFAULT_ARCH=android make install-docker-deps
- make install-deps-no-envs
script:
- make clean
- DEFAULT_TARGET=android make build-docker
- DEFAULT_TARGET=android-emulator make build-docker
- make lint
- make run-docker CMD='make test'
- make run-docker CMD='make install coveralls ; make test-cover-travis'
- stage: Linux
before_install:
- source ./ci-scripts/install-$TRAVIS_OS_NAME.sh
install:
- export D_ARCH="Linux"
- make install-docker-deps
- make install-deps-no-envs
- make install-linters
before_script:
- echo "PATH=$PATH";
- echo "PIP=$PIP";
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet clean
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet/tiny-firmware/protob install-deps-nanopb
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet/tiny-firmware/protob/nanopb/vendor/nanopb/generator/proto
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet emulator
- make -C ./tmp/hardware-wallet run-emulator & true;
- ps aux | grep emulator
script:
- make clean
- DEFAULT_TARGET=linux make build-docker
- make clean
- make run-docker CMD='make test'
- make run-docker CMD='make test-skyhw'
- make lint
- make run-docker CMD='make install-coveralls ; make test-cover-travis'
- stage: MacOS
os: osx
osx_image: xcode10.2
before_install:
- source ./ci-scripts/install-$TRAVIS_OS_NAME.sh
install:
- export D_ARCH="MacOS"
- make install-deps
- make install-coveralls
before_script:
- echo "PATH=$PATH";
- echo "PIP=$PIP";
- ( sudo Xvfb :99 -ac ${XARGS}; echo "Xvfb ok" )& export DISPLAY=:99
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet clean
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet/tiny-firmware/protob install-deps-nanopb
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet/tiny-firmware/protob/nanopb/vendor/nanopb/generator/proto
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet emulator
- make -C ./tmp/hardware-wallet run-emulator & true;
- ps aux | grep emulator
script:
- make clean
- make build
- make test
- make test-skyhw
- make build-icon
- make lint
- make test-cover-travis
# FIXME: Restore Windows builds
# - stage: Windows
# os: windows
Expand All @@ -94,55 +121,29 @@ matrix:
# - make test
# - make build-icon
# - make test-cover-travis
- stage: MacOS
os: osx
osx_image: xcode10.2
before_install:
- source ./ci-scripts/install-$TRAVIS_OS_NAME.sh
install:
- make install-deps
- make install-coveralls
before_script:
- echo "PATH=$PATH";
- echo "PIP=$PIP";
# Start Xvfb on osx
- ( sudo Xvfb :99 -ac ${XARGS}; echo "Xvfb ok" )& export DISPLAY=:99
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet clean
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet/tiny-firmware/protob install-deps-nanopb
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet/tiny-firmware/protob/nanopb/vendor/nanopb/generator/proto
- PYTHON=python3 PIP=pip3 make -C tmp/hardware-wallet emulator
- make -C ./tmp/hardware-wallet run-emulator & true;
# Run self-tests
- ps aux | grep emulator
script:
- make clean
- make build
- make test
- make test-skyhw
- make build-icon
- make lint
- make test-cover-travis
notifications:
email: false
webhooks:
urls:
- https://fathomless-fjord-24024.herokuapp.com/notify
- https://coveralls.io/webhook

- https://fathomless-fjord-24024.herokuapp.com/notify
- https://coveralls.io/webhook
before_deploy:
- export VERSION="$(git describe --tags --exact-match HEAD 2> /dev/null)"
- export ARCH="$(uname -m)"
- export OS="$(uname -s)"
- make prepare-release
- make build
- ( cd deploy && tar czf ../fibercryptowallet-${VERSION}-${OS}-${ARCH}.tar.gz ./* )
- pwd && ls -l .
- export VERSION="$(git describe --tags --exact-match HEAD 2> /dev/null)"
- export ARCH="$(uname -m)"
- export OS="$(uname -s)"
- make prepare-release
- if [[ $D_ARCH == "Linux" ]]; then DEFAULT_TARGET=linux make build-docker ; else
echo "False"; fi
- if [[ $D_ARCH == "MacOS" ]]; then make build; else echo "False"; fi
- "( cd deploy && tar czf ../fibercryptowallet-${VERSION}-${OS}-${ARCH}.tar.gz ./*
\ )"
- pwd && ls -l .
deploy:
provider: releases
api_key:
secure: DCM8aKdci6IA7dF9a84V6FEK+VkfEGoitre/wdxeZs7z4obKY41MhejHvWe017tuLhWqARwuud4PgEDcypVVDN2zB5d/D94O3JQHIDfL643WWTS7JOd+93vfOVmQ3jcGg5yRwt4T8fH3RUwNgQjagXeWLnoAhgAvUzGeAUN26AUFS4TXMmf0tnfGRGsrd8tMcnmsPxWcmrog1GllJ1m7GQ55ua1FuYV3ldyX6bnxQSx/B73T8pCvmz9OIW14nZVHgPrdOeVgHy2JlA10dKe59i1CTBevbo050CEIAque6RkzW52AQTKksmd/X2GnxODkqaZ8dux5b/uCv8Stht1jebM8AwZID8nmnmlpUHrafuZilu/m3RJ/j7YuF+UsNGOPeLG+z1tb3KcSENihRPsFOh4YHFTPHkDBbMcvg+2EKfbOIOrg/+js7Ycmmjx1NoLZgYpmMuq6mBu/TZDuFmFNVtDwevieG7berfVyvIyr3TJEdW+bm+vHGpdTcZho1cMrSmaB2r9j9UADKrRrRAU7vHCjozufg4+dnGjYHHQNCecpeirsbCymq3d7Wgezkm/LK4c0vDbtHuXo1q5VxrMjizzuBNCmiRyguGt0zSWvemU68x8W+OjmnFNJRyEa/g//2BLBQrn6A3qC+Qv5tn1REClW7xMcZXcDjIjmIW7z2Gw=
file: fibercryptowallet-${VERSION}-${OS}-${ARCH}.tar.gz
kip_cleanup: true
secure: d+faEpSLTcV4Xrvmz7D7WOwc5I99zReYxHQJqzixjw4G6qVed30Ra2eUfJ+84kkkuy/xFZKwdR52rZGCeHNxlUr0AeFX385ZuCbVpgyJiHa0h39IckFgOmDei7nUZ43cdAe+GR63W/AePVs+SvKXnh3y+iZMMa2n73AiaX4H8cFLmWPznODW78gED+jmatpKJ43/83/JPhVbliX7nYV61Icgcb1mH6QLNnFMUfxiDZmaRT9lc3xvCZB6cqoKBGf7sAu/bLM9R7VWjr8kBOV8deN9x92vO3p0+ED1s6XS9Ku73wo7VkGsWsqD2c8CMP8F6bHVYx0ixOahKTnRJzHoZVzo1fuMWUev3MxlZwbPVAt4VVVCQxMoj/+ZgQXyPNI6ystPqMpF9q9ot8T6EiwhUITJATtChZqj0nwmlgjS7przGZAe3f1Oj5yFUPk00VAs2qg8UPPHL/tM+gjT0oamqiNr8iNNpmjTLvjbMvaLQLnDSLS0yAnL3nVyfYz//dmkfyhAtKFNu+CxNwGoOptUSdikMEUGows8Q4G0Rw5CmP5+fPOQC71xOQ8l8FX0mNvSQt8sV74MX63xq+eDNOCHdxKHga+ReNNbVK6NFJJLaKatL8E8jD119igB2ZVPuAOCdPTXiQXS+FUjJPCMbmDMgJdWRl+CPQoJwrQjXUqvAGc=
file: fibercryptowallet-${VERSION}-${OS}-${D_ARCH}.tar.gz
skip_cleanup: true
draft: true
overwrite: true
on:
Expand Down