Skip to content

Commit

Permalink
upload code and test using travis
Browse files Browse the repository at this point in the history
  • Loading branch information
ziqiaozhou committed Sep 27, 2018
0 parents commit 920f557
Show file tree
Hide file tree
Showing 45,653 changed files with 18,438,838 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
46 changes: 46 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
git:
depth: 3
language: c
os: linux
sudo: false
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:
- build/linux-*.deb
skip_cleanup: true
on:
tags: true
repo: ziqiaozhou/cachebar
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Status

| Ubuntu x86_64 |
| ------------- |
|![](https://travis-ci.org/ziqiaozhou/cachebar.svg?branch=master)||

# See https://github.com/ziqiaozhou/cachebar/wiki for details
1 change: 1 addition & 0 deletions cacheinfo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
getconf -a|grep CACHE
10 changes: 10 additions & 0 deletions config.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
IMG=qemu-image.img
DIR=mount-point.dir
qemu-img create $IMG 1g
mkfs.ext2 $IMG
mkdir $DIR
sudo mount -o loop $IMG $DIR
sudo debootstrap --arch amd64 jessie $DIR
sudo umount $DIR
#rmdir $DIR
sudo chroot $DIR
8 changes: 8 additions & 0 deletions runimg.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
qemu-system-x86_64 -kernel $1 \
-hda qemu-image.img\
-append "root=/dev/sda"\
-nographic\
-curses\
-enable-kvm

#-append "root=/dev/sda console=ttyS0"\
Loading

0 comments on commit 920f557

Please sign in to comment.