forked from mtk-openwrt/arm-trusted-firmware
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
52 lines (48 loc) · 1.29 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
language: c
compiler:
- gcc
os: linux
dist: bionic
cache: ccache
git:
depth: 10
quiet: false
if: tag IS blank
branches:
only:
- /^.*-main$/
- /^.*-travis$/
install:
- sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu bionic main'
- sudo apt-get update -qq
# - sudo apt-get install -qq libssl-dev u-boot-tools python-mako debhelper fakeroot gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu make
- sudo apt-get install -qq gcc-aarch64-linux-gnu make
script:
# - export PATH=/usr/lib/ccache:$PATH
- bash build.sh
- bash build.sh rename
- bash build.sh img
- sed -i 's/#\(DEVICE=emmc\)/\1/' build.conf
- bash build.sh
- bash build.sh rename
- bash build.sh img
before_deploy:
# Set up git user name and tag this commit
- git config --local user.name "Frank Wunderlich"
- git config --local user.email "frank-w@public-files.de"
- 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:
- bpi-r64-main
provider: releases
token: $GITHUB_TOKEN
file_glob: true
file:
- "./bl2*.img"
- "./fip*.bin"
- "./bpi-r64_*.img"
name: $TRAVIS_BRANCH-$(date +'%Y%m%d%H%M%S')
skip_cleanup: true
cleanup: false