Skip to content

Commit

Permalink
travis: some fixes
Browse files Browse the repository at this point in the history
- fix FIT build (device-tree-compiler)
- building main,rc and travis branches, but upload only main
  • Loading branch information
frank-w committed Oct 5, 2020
1 parent 81528a9 commit a4957c7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@ cache: ccache
git:
depth: 10
quiet: false

if: tag IS blank

branches:
only:
- /^.*-main$/
- /^.*-rc$/
- /^.*-travis$/

install:
- sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu focal main'
- sudo apt-get update -qq
- sudo apt-get install -qq ccache libssl-dev u-boot-tools python-mako debhelper fakeroot gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu make
- sudo apt-get install -qq ccache libssl-dev u-boot-tools python-mako debhelper fakeroot gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu make device-tree-compiler
script:
- export PATH=/usr/lib/ccache:$PATH
- bash build.sh importconfig
Expand All @@ -39,13 +40,14 @@ before_deploy:
- export TRAVIS_TAG=${TRAVIS_TAG:-"CI-BUILD-$(date +'%Y%m%d_%H%M%S')-$(git log --format=%h -1)"}
- git tag $TRAVIS_TAG
deploy:
on:
branch: /^.*-main$/
# all_branches: true
provider: releases
token: $GITHUB_TOKEN
# file_glob: true
# file:
# - "../SD/*"
# - "../*.deb"
# name: $TRAVIS_BRANCH-$(date +'%Y%m%d%H%M%S')
file_glob: true
file:
- "../SD/*"
- "../*.deb"
name: $TRAVIS_BRANCH-$(date +'%Y%m%d%H%M%S')
cleanup: false
on:
all_branches: true

0 comments on commit a4957c7

Please sign in to comment.