-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (49 loc) · 1.76 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
git:
depth: 3
language: c
os: linux
sudo: false
branches:
only:
- /^v.*$/
addons:
apt:
packages:
- fakeroot
script:
- export SRC=`pwd`/source
- export CACHE=`pwd`/build
- mkdir -p $CACHE
- cd source
- if [ -f ${CACHE}/.config ];then echo "exist .config";else make O=../build oldconfig;fi
- rm .config*
- if [[ -f ${CACHE}/touch_order.txt ]]; then
while fn in `cat ${CACHE}/touch_order.txt`; do
touch $fn;
done;
fi
- if [[ -f ${CACHE}/previous_git_commit.txt ]]; then
read PREVIOUS_GIT_COMMIT < ${CACHE}/previous_git_commit.txt;
changed_files=`git diff --name-only $PREVIOUS_GIT_COMMIT HEAD`;
touch `echo $changed_files`;
fi
- make O=../build -j$(nproc)
- make O=../build deb-pkg -j4
- find ./source/ -type f -printf "%T+\t%p\n" | sort | cut -f 2 > ${CACHE}/touch_order.txt
- cd ..
- git rev-parse HEAD > ${CACHE}/previous_git_commit.txt
cache:
apt: true
directories:
- build
deploy:
provider: releases
api_key:
secure: Xpo6ocj3p5sE0a9/kEYBQZ5jM8u8i1XDcmJO6OGUJwSfqESVHm5smyZPm3aj/XGyUYltjz0Zh7NHZkmbBcxIlPobmrKANFICZHrf5bAKs52+PB8fjY0ly5ZByT0pfqrmMbw41b7YNAIgaAuUR8LXjo2KHyXYMwI221GfCfZSb70RFmoee1jM2e4yzeC7R4DJm33Zg/aU8hYF/6AKNuPKM59we+MbFaQwN74EjHQcz+cN7wrcuQfp/SLwFN0FgjxMY1hQyOoMtBDp/9jBH4I6xrrzQ2AEJibZNKxieYjcnIUhdQzU1Alu+UeaW/+9XKeXvJ/MIrlLUQhUJ49NYg9WCcAF/Me7+nH34GxuJIG9mTKC00H85QR7At7F7XdsDTvjrRXqU9WRQz/vPFyAA2uKueCYWKAr8j3bqcXIWqECPmlcEHJnbfVJmCa87azJ5xSN6988ZXsAPirl10zX99jx4VAE0zWnWgWbBuSCwdcgvH99iJWPJk5rHqydSocoXP1aJTGoLP5I1vQTObEqpe4ZChHqoXZc/4yQ3CS9t9/IfSQyRB1bLfe9gQs7TtR3DvXyyP+jGqZ3s708ivahRbJQ5xmmAk6C6BYcKTcUs9pMfTuN5v9DWhLYSr+vCbRjgqov1H36n33vHVs6r/iT13wyNxp9ox2qaYN5yRh/H117oKw=
file_glob: true
file:
- ${CACHE}/../linux-*.deb
skip_cleanup: true
on:
tags: true
repo: ziqiaozhou/cachebar