File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change
1
+ language : c
2
+
3
+ env :
4
+ global :
5
+ - TARGET_BOARD=odroidc2
6
+ - TRAVIS_SECURE_ENV_VARS=true
7
+ - ARCH=arm64
8
+ - CROSS_COMPILE=aarch64-linux-gnu-
9
+ - DEB_PACKAGES="kernel-image kernel-headers"
10
+
11
+ addons :
12
+ apt :
13
+ packages :
14
+ - gcc-aarch64-linux-gnu
15
+ - fakeroot
16
+ - po-debconf
17
+ - xmlto
18
+ - wput
19
+ git :
20
+ depth : 3
21
+
22
+ before_install :
23
+ - wget http://archive.ubuntu.com/ubuntu/pool/universe/k/kernel-package/kernel-package_13.018_all.deb
24
+ - sudo dpkg -i kernel-package_13.018_all.deb
25
+
26
+ install :
27
+
28
+ script :
29
+ - make ${TARGET_BOARD}_defconfig
30
+ - if [ ! -f REPORTING-BUGS ]; then ln -s Documentation/admin-guide/reporting-bugs.rst
31
+ REPORTING-BUGS; fi
32
+ - sed -i "s/^CONFIG_LOCALVERSION=.*/CONFIG_LOCALVERSION=\"-${TARGET_BOARD}\"/g" .config
33
+ - sed -i "s/^CONFIG_LOCALVERSION_AUTO=.*/CONFIG_LOCALVERSION_AUTO=n\"/g" .config
34
+ - touch .scmversion
35
+ - CONCURRENCY_LEVEL=5 KDEB_PKGVERSION=1 DEB_HOST_ARCH=${ARCH} make-kpkg --arch ${ARCH}
36
+ --cross-compile ${CROSS_COMPILE} --rootcmd fakeroot --initrd
37
+ --append-to-version -arm64 --revision ${TRAVIS_BUILD_NUMBER} ${DEB_PACKAGES}
38
+
39
+ before_deploy :
40
+ - export RELEASE_PACKAGES=$(ls ../*.deb)
41
+ -
git config --global user.email "[email protected] "
42
+ - git config --global user.name "Dongjin Kim"
43
+ - export GIT_TAG=travis/${TARGET_BOARD}-${TRAVIS_BUILD_NUMBER}
44
+ - git tag ${GIT_TAG} -a -m "Tagged by Travis (${TRAVIS_BUILD_NUMBER})"
45
+ - git push --quiet https://tobetter:${PRIVATE_ACCESS_TOKEN}@github.com/tobetter/linux ${GIT_TAG}
46
+
47
+ deploy :
48
+ provider : releases
49
+ api_key :
50
+ secure : ${PRIVATE_ACCESS_TOKEN}
51
+ file_glob : true
52
+ file : ../*.deb
53
+ skip_cleanup : true
54
+ on :
55
+ tags : false
56
+ all_branches : true
You can’t perform that action at this time.
0 commit comments