Skip to content

Commit

Permalink
Tell Travis to build .deb file
Browse files Browse the repository at this point in the history
Fix paths in travis
Pass in a version to build
add -e flag to all scripts
fix syntax, add doxygen
fix path passed to debian.sh
Add devscripts to travis for debian building
Add fakeroot and attempt to deploy the artifact
Default to 0~dev0 if no tag is present, and deploy the correct artifact (maybe)
Fix some paths, maybe
Flip conditional
Add graphviz to dependencies for doxygen
  • Loading branch information
ervanalb committed Jul 31, 2019
1 parent 52aca98 commit 89b8aac
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 9 deletions.
21 changes: 15 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ before_script:

script: make

after_success:
- make doxygen-doc
- make bundle
#- ./radiance_cli -a
after_success:
- cd ..
- ./.travis/after_success.sh

deploy:
- provider: pages
Expand All @@ -35,7 +34,7 @@ deploy:
- provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file: "Radiance.AppDir.tar.gz"
file: "build/Radiance.AppDir.tar.gz"
on:
tags: true
all_branches: true
Expand All @@ -45,9 +44,19 @@ deploy:
- provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file: "Radiance.dmg"
file: "build/Radiance.dmg"
on:
condition: "$TRAVIS_OS_NAME == osx"
tags: true
all_branches: true
overwrite: true

- provider: releases
skip_cleanup: true
api_key: $GITHUB_TOKEN
file: "deploy/build/radiance_$TRAVIS_TAG-1_amd64.deb"
on:
tags: true
all_branches: true
condition: "$TRAVIS_OS_NAME == linux"
overwrite: true
19 changes: 19 additions & 0 deletions .travis/after_success.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash -ex

if [[ $TRAVIS_OS_NAME == 'osx' ]]
then
make bundle
elif [[ $TRAVIS_OS_NAME == 'linux' ]]
then
if [[ -z "$TRAVIS_TAG" ]]
then
VERSION="0~dev1"
else
VERSION="$TRAVIS_TAG"
fi

deploy/debian.sh . deploy/build "$VERSION" 1

(cd build && make bundle)
(cd build && make doxygen-doc)
fi
2 changes: 1 addition & 1 deletion .travis/before_install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -x
#!/bin/bash -ex

if [[ $TRAVIS_OS_NAME == 'osx' ]]
then
Expand Down
5 changes: 3 additions & 2 deletions .travis/install.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash -x
#!/bin/bash -ex

if [[ $TRAVIS_OS_NAME == 'osx' ]]
then
Expand All @@ -12,7 +12,8 @@ then
elif [[ $TRAVIS_OS_NAME == 'linux' ]]
then
sudo apt-get -qy install debhelper cmake qtbase5-dev qtdeclarative5-dev \
qtquickcontrols2-5-dev libfftw3-dev libsamplerate0-dev portaudio19-dev libmpv-dev librtmidi-dev
qtquickcontrols2-5-dev libfftw3-dev libsamplerate0-dev portaudio19-dev libmpv-dev librtmidi-dev \
doxygen devscripts fakeroot graphviz

curl -L https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage > linuxdeployqt \
&& chmod +x linuxdeployqt \
Expand Down

0 comments on commit 89b8aac

Please sign in to comment.