solvespace/.travis.yml

39 lines
1.5 KiB
YAML
Raw Normal View History

language: c
os:
- linux
- osx
sudo: required
dist: trusty
install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then 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 libfreetype6-dev dpkg-dev; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew upgrade cmake libpng; fi
script:
- mkdir cbuild
- cd cbuild
2015-09-13 10:24:52 +00:00
- 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
2015-09-13 09:51:21 +00:00
deploy:
2015-09-13 10:24:52 +00:00
- provider: releases
api_key:
secure: DA3tW0My37vbi2t3dZ061281Xm8KSIkeLdFZsQISrut0g1kkbWuBTPxAfvE3B6OE8p47wAclE/wxA1+obMTVkY0oYpd5u+JelYNHxU/oL8Ww0xdUANwKNJ1JD2EZP8nSz7JSvxuGILC6AFPoTjawsG97SXwiTyp7z0PA6nvzraE=
skip_cleanup: true
file_glob: true
file:
- ../solvespace_*.deb
- ../solvespace-dbg_*.deb
2015-09-13 10:24:52 +00:00
on:
repo: whitequark/solvespace
tags: true
condition: "$TRAVIS_OS_NAME == linux"
2015-09-13 09:51:21 +00:00
- provider: releases
api_key:
secure: DA3tW0My37vbi2t3dZ061281Xm8KSIkeLdFZsQISrut0g1kkbWuBTPxAfvE3B6OE8p47wAclE/wxA1+obMTVkY0oYpd5u+JelYNHxU/oL8Ww0xdUANwKNJ1JD2EZP8nSz7JSvxuGILC6AFPoTjawsG97SXwiTyp7z0PA6nvzraE=
skip_cleanup: true
file: /Users/travis/build/whitequark/solvespace/cbuild/solvespace.dmg
on:
repo: whitequark/solvespace
tags: true
condition: "$TRAVIS_OS_NAME == osx"
2015-09-13 10:24:52 +00:00