Skip to content

Commit

Permalink
mkay
Browse files Browse the repository at this point in the history
  • Loading branch information
RemoveRusky authored and fundies committed Mar 29, 2018
1 parent 1e0fdbf commit 1c2dd1a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 9 deletions.
33 changes: 24 additions & 9 deletions .travis.yml
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
5 changes: 5 additions & 0 deletions control
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

0 comments on commit 1c2dd1a

Please sign in to comment.