forked from SrainApp/srain
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build(fix): fix travis ci, only build on debian for now
- Loading branch information
1 parent
eeacf80
commit 1ecb348
Showing
5 changed files
with
65 additions
and
14 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,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: |
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,4 @@ | ||
#!/bin/sh | ||
|
||
cd /build | ||
./doc/install/build.sh |
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,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 |
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,4 @@ | ||
#!/bin/sh | ||
|
||
cd /build | ||
./doc/install/install.sh |
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