forked from kuoruan/Build-Armbian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
85 lines (85 loc) · 3.21 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
os: linux
dist: bionic
language: c
compiler: gcc
cache:
ccache: true
git:
depth: 1
submodules: false
notifications:
email: false
env:
global:
- TERM=dumb
matrix:
include:
- env: RELEASE=disco BUILD_DESKTOP=no BUILD_MINIMAL=no
- env: RELEASE=bionic BUILD_DESKTOP=no BUILD_MINIMAL=no
- env: RELEASE=buster BUILD_DESKTOP=no BUILD_MINIMAL=no
# minimal build
- env: RELEASE=disco BUILD_DESKTOP=no BUILD_MINIMAL=yes
- env: RELEASE=bionic BUILD_DESKTOP=no BUILD_MINIMAL=yes
- env: RELEASE=buster BUILD_DESKTOP=no BUILD_MINIMAL=yes
# desktop build
- env: RELEASE=disco BUILD_DESKTOP=yes BUILD_MINIMAL=no
- env: RELEASE=bionic BUILD_DESKTOP=yes BUILD_MINIMAL=no
- env: RELEASE=buster BUILD_DESKTOP=yes BUILD_MINIMAL=no
allow_failures:
- env: RELEASE=disco BUILD_DESKTOP=yes BUILD_MINIMAL=no
- env: RELEASE=bionic BUILD_DESKTOP=yes BUILD_MINIMAL=no
- env: RELEASE=buster BUILD_DESKTOP=yes BUILD_MINIMAL=no
before_install:
- sudo apt update
- sudo apt install -y gnupg1 gpgv1 --no-install-recommends
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys ED75B5A4483DA07C
- echo "deb http://repo.aptly.info/ nightly main" | sudo tee /etc/apt/sources.list.d/aptly.list
- sudo dpkg --add-architecture i386
install:
- sudo apt update
- |
sudo apt install -y dialog lsb-release binutils ca-certificates device-tree-compiler \
pv bc lzop zip binfmt-support build-essential ccache debootstrap ntpdate gawk gcc-arm-linux-gnueabihf \
qemu-user-static u-boot-tools uuid-dev zlib1g-dev unzip libusb-1.0-0-dev parted pkg-config libncurses5-dev whiptail \
debian-keyring debian-archive-keyring f2fs-tools libfile-fcntllock-perl rsync libssl-dev nfs-kernel-server btrfs-tools \
ncurses-term p7zip-full kmod dosfstools libc6-dev-armhf-cross fakeroot xxd \
patchutils python liblz4-tool libpython2.7-dev linux-base swig libpython-dev \
systemd-container udev g++-5-arm-linux-gnueabihf lib32stdc++6 cpio tzdata psmisc acl \
libc6-i386 lib32ncurses5 lib32tinfo5 locales ncurses-base zlib1g:i386 pixz bison libbison-dev flex libfl-dev \
pigz aptly aria2 cryptsetup cryptsetup-bin apt-cacher-ng --no-install-recommends
before_script:
- df -h
- free -mh
- sudo ccache -M 5.0G
script:
- cd "$TRAVIS_BUILD_DIR" && touch .ignore_changes
- |
if [ -n "$TRAVIS_TAG" ] ; then
travis_wait 30 ./compile.sh BOARD="aml-g12" BRANCH="default" \
RELEASE="$RELEASE" BUILD_MINIMAL="$BUILD_MINIMAL" BUILD_DESKTOP="$BUILD_DESKTOP" \
KERNEL_CONFIGURE="no" KERNEL_ONLY="no" PROGRESS_DISPLAY="none"
else
./compile.sh BOARD="aml-g12" BRANCH="default" \
RELEASE="$RELEASE" BUILD_MINIMAL="$BUILD_MINIMAL" BUILD_DESKTOP="$BUILD_DESKTOP" \
KERNEL_CONFIGURE="no" KERNEL_ONLY="yes"
fi
after_success:
- df -h
- free -mh
- cd "$TRAVIS_BUILD_DIR"
- ccache -s
- ls -alh
- find "output/"
before_deploy:
- mkdir "$HOME/imgs" && cd "$HOME/imgs"
- find "$TRAVIS_BUILD_DIR/output/" -name *.img -exec sudo mv {} "$HOME/imgs" \;
- sudo xz -v -z *.img && xz -l *.xz
deploy:
provider: releases
file_glob: true
file: "$HOME/imgs/*.xz"
cleanup: false
edge: true
token: $GITHUB_TOKEN
on:
tags: true