forked from frank-w/BPI-Router-Linux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
44 lines (40 loc) · 1.08 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
language: c
compiler:
- gcc
sudo: required
dist: trusty
cache: ccache
git:
depth: false
quiet: false
if: tag IS blank
branches:
only:
- /^.*-main$/
install:
- sudo apt-add-repository 'deb http://archive.ubuntu.com/ubuntu xenial 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
script:
- export PATH=/usr/lib/ccache:$PATH
- bash build.sh importconfig
- bash build.sh build
- bash build.sh cryptodev
- bash build.sh deb
- bash build.sh pack
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"
- git tag "CI-BUILD-$(date +'%Y%m%d%H%M%S')-$(git log --format=%h -1)"
deploy:
provider: releases
api_key: $GITHUB_TOKEN
file_glob: true
file:
- "debian/*"
- "../SD/*"
name: $TRAVIS_BRANCH-$(date +'%Y%m%d%H%M%S')
skip_cleanup: true
on:
all_branches: true