-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1e0fdbf
commit 1c2dd1a
Showing
2 changed files
with
29 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
os: linux | ||
dist: trusty | ||
deploy: | ||
provider: releases | ||
api_key: $GITHUB_OAUTH_TOKEN | ||
file: google-trash.deb | ||
skip_cleanup: true | ||
on: | ||
tags: true | ||
|
||
script: | ||
- | | ||
sudo apt-get update | ||
sudo apt -get install cmake curl | ||
git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc | ||
cd grpc/ | ||
sudo apt-get install cmake curl | ||
git clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc /home/travis/grpc | ||
pushd /home/travis/grpc | ||
git submodule update --init | ||
mkdir -p build/ | ||
mkdir -p deb/ | ||
cd build/ | ||
cmake -DCMAKE_INSTALL_PREFIX:PATH=../deb .. | ||
popd | ||
mkdir -p /home/travis/build/ | ||
mkdir -p /home/travis/google-trash/DEBIAN | ||
pushd /home/travis/build/ | ||
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr /home/travis/grpc | ||
make | ||
make install | ||
make install DESTDIR=/home/travis/google-trash | ||
install -v ./grpc_* /home/travis/google-trash/usr/bin/ | ||
find . -name "*.a" -or -name "*.so" | xargs -I % install -v % /home/travis/google-trash/usr/lib/ | ||
find /home/travis/grpc -name "include" | xargs -I % cp -R -v % /home/travis/google-trash/usr/ | ||
popd | ||
cp ./control /home/travis/google-trash/DEBIAN/ | ||
dpkg-deb --build /home/travis/google-trash | ||
mv /home/travis/google-trash.deb . | ||
sudo dpkg -i --force-all google-trash.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Package: google-trash | ||
Version: 0.1 | ||
Maintainer: Greg Williamson | ||
Architecture: amd64 | ||
Description: recent builds of google crap and dependencies for travis-ci |