From 09c072fdfdfa76c746d57c3abb2bc671c0c254dd Mon Sep 17 00:00:00 2001 From: whitequark Date: Sun, 13 Sep 2015 13:24:52 +0300 Subject: [PATCH] Add Debian nightly builds. --- .gitignore | 1 + .travis.yml | 18 +++++++++++++++--- debian/control | 2 +- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a511f80a..458c226d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ /debian/tmp/ /debian/*.log /debian/*.substvars +/debian/*.debhelper /debian/files /debian/solvespace/ /debian/libslvs1/ diff --git a/.travis.yml b/.travis.yml index e4d53c95..3adb2c3f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,14 +3,25 @@ os: - linux - osx install: - - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:smspillaz/cmake-master; sudo add-apt-repository -y ppa:ondrej/php5; sudo apt-get update -qq; sudo apt-get install -q -y cmake cmake-data libpng12-dev zlib1g-dev libjson0-dev libfontconfig1-dev libgtkmm-2.4-dev libpangomm-1.4-dev libgl1-mesa-dev libglu-dev libglew-dev; fi + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo add-apt-repository -y ppa:smspillaz/cmake-master; sudo add-apt-repository -y ppa:ondrej/php5; sudo apt-get update -qq; sudo apt-get install -q -y cmake cmake-data libpng12-dev zlib1g-dev libjson0-dev libfontconfig1-dev libgtkmm-2.4-dev libpangomm-1.4-dev libgl1-mesa-dev libglu-dev libglew-dev libgd-gd2-perl dpkg-dev; fi - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew upgrade cmake libpng; fi script: - mkdir cbuild - cd cbuild - - cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DCMAKE_BUILD_TYPE=Debug .. - - make + - cmake -DCMAKE_OSX_DEPLOYMENT_TARGET=10.7 -DCMAKE_BUILD_TYPE=Debug .. + - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then cd ..; dpkg-buildpackage -b -us -uc; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make; fi deploy: + - provider: releases + api_key: + secure: DA3tW0My37vbi2t3dZ061281Xm8KSIkeLdFZsQISrut0g1kkbWuBTPxAfvE3B6OE8p47wAclE/wxA1+obMTVkY0oYpd5u+JelYNHxU/oL8Ww0xdUANwKNJ1JD2EZP8nSz7JSvxuGILC6AFPoTjawsG97SXwiTyp7z0PA6nvzraE= + skip_cleanup: true + file_glob: true + file: ../solvespace_*.deb + on: + repo: whitequark/solvespace + tags: true + condition: "$TRAVIS_OS_NAME == linux" - provider: releases api_key: secure: DA3tW0My37vbi2t3dZ061281Xm8KSIkeLdFZsQISrut0g1kkbWuBTPxAfvE3B6OE8p47wAclE/wxA1+obMTVkY0oYpd5u+JelYNHxU/oL8Ww0xdUANwKNJ1JD2EZP8nSz7JSvxuGILC6AFPoTjawsG97SXwiTyp7z0PA6nvzraE= @@ -20,3 +31,4 @@ deploy: repo: whitequark/solvespace tags: true condition: "$TRAVIS_OS_NAME == osx" + diff --git a/debian/control b/debian/control index 62d0cb0d..94f10815 100644 --- a/debian/control +++ b/debian/control @@ -5,7 +5,7 @@ Maintainer: whitequark Build-Depends: debhelper (>= 9), cmake, libpng12-dev, zlib1g-dev, libjson-c-dev, libfontconfig1-dev, libgtkmm-2.4-dev, libpangomm-1.4-dev, libgl-dev, libglu-dev, libglew-dev, - libgd-perl + libgd-gd2-perl Standards-Version: 3.9.5 Homepage: http://solvespace.com Vcs-Git: git://github.com/whitequark/solvespace