Skip to content

Commit

Permalink
Build(fix): fix travis ci, only build on debian for now
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverRainZ committed Feb 9, 2018
1 parent eeacf80 commit 1ecb348
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 14 deletions.
46 changes: 35 additions & 11 deletions .travis.yml
@@ -1,17 +1,41 @@
dist: trusty

group: travis_latest
language: c
services:
- docker

sudo: required
compiler: gcc
env:
PLATFORM=debian

before_install:
- sudo add-apt-repository ppa:rebuntu16/glade-3.19+-trusty -y
- sudo apt-get update -q
- sudo apt-get install -y libglib2.0-dev libgtk-3-dev python3 libcurl3 gettext pkg-config libircclient-dev libircclient1
- docker pull ${PLATFORM}:stable
- docker run
--name with-dep
-v $PWD:/build
-e PLATFORM=${PLATFORM}
${PLATFORM}:stable
/build/.travis/dep.sh
- docker commit with-dep ${PLATFORM}:with-dep
script:
# Build
- docker run --name with-build
-v $PWD:/build
-e PLATFORM=${PLATFORM}
${PLATFORM}:with-dep
/build/.travis/build.sh
- docker commit with-build ${PLATFORM}:with-build
# Install
- docker run --name with-install
-v $PWD:/build
-e PLATFORM=${PLATFORM}
${PLATFORM}:with-build
/build/.travis/install.sh
- docker commit with-install ${PLATFORM}:with-install
# Verify
- docker run
${PLATFORM}:with-install
/bin/sh -c "/usr/local/bin/srain --version"

script:
- mkdir build
- ./configure --prefix=/usr/local --disable-debug
- make
- sudo make DESTDIR=/ install
# vim: set tabstop=2:
# vim: set shiftwidth=2:
# vim: set softtabstop=2:
4 changes: 4 additions & 0 deletions .travis/build.sh
@@ -0,0 +1,4 @@
#!/bin/sh

cd /build
./doc/install/build.sh
16 changes: 16 additions & 0 deletions .travis/dep.sh
@@ -0,0 +1,16 @@
#!/bin/sh

case "${PLATFORM}" in
debian)
cat > /etc/apt/apt.conf <<EOF
APT::Get::Assume-Yes "true";
APT::Get::force-yes "true";
APT::Get::Install-Recommends "false";
APT::Get::Install-Suggests "false";
EOF
apt update -q
;;
esac

cd /build
./doc/install/${PLATFORM}.sh
4 changes: 4 additions & 0 deletions .travis/install.sh
@@ -0,0 +1,4 @@
#!/bin/sh

cd /build
./doc/install/install.sh
9 changes: 6 additions & 3 deletions README.rst
@@ -1,6 +1,9 @@
=====
Srain
=====
=================
Srain |ci-status|
=================

.. |ci-status| image:: https://travis-ci.org/SilverRainZ/srain.svg?branch=master
:target: https://travis-ci.org/SilverRainZ/srain

Modern, beautiful IRC client written in GTK+ 3.

Expand Down

0 comments on commit 1ecb348

Please sign in to comment.