Skip to content

Commit

Permalink
travis updt
Browse files Browse the repository at this point in the history
  • Loading branch information
oktoshi committed Nov 5, 2020
1 parent f97cb86 commit 33fdd46
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 38 deletions.
26 changes: 3 additions & 23 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,6 @@ before_install:
- sudo apt-get install libdb4.8-dev libdb4.8++-dev -y

script:
- cd src ; RELEASE=1 STATIC=TRUE make -j$(nproc) -f makefile.unix ; strip okcashd ; cd -

# - make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/ # FIXME; workaround are the following lines starting with "mkdir"
- mkdir -p appdir/usr/bin ; cp src/okcashd ./appdir/usr/bin/
- mkdir -p appdir/usr/share/applications ; cp doc/linux-desktop/okcashd.desktop ./appdir/usr/share/applications/
- mkdir -p appdir/usr/share/icons/hicolor/256x256/apps ; cp doc/linux-desktop/okcashd.png ./appdir/usr/share/icons/hicolor/256x256/apps/
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage

after_success:
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
- # curl --upload-file Okcash*.AppImage https://transfer.sh/okcash-git.$(git rev-parse --short HEAD)-x86_64.AppImage
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh Okcash*.AppImage*

branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/
- qmake PREFIX=/usr
- make -j$(nproc)
- cd src ; RELEASE=1 STATIC=TRUE make -j$(nproc) -f makefile.unix ; strip okcashd ; cd -
35 changes: 35 additions & 0 deletions cqnode.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
language: cpp
compiler: gcc
os: linux
dist: trusty

before_install:
- sudo add-apt-repository ppa:bitcoin/bitcoin -y
- sudo apt-get -qq update
- sudo apt-get install -y qt5-default qt5-qmake qtbase5-dev-tools qttools5-dev-tools build-essential libboost-dev libboost-system-dev libboost-filesystem-dev libboost-program-options-dev libboost-thread-dev libssl-dev libminiupnpc-dev libqt5webkit5-dev
- sudo apt-get install libdb4.8-dev libdb4.8++-dev -y

script:
- cd src ; RELEASE=1 STATIC=TRUE make -j$(nproc) -f makefile.unix ; strip okcashd ; cd -

# - make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/ # FIXME; workaround are the following lines starting with "mkdir"
- mkdir -p appdir/usr/bin ; cp src/okcashd ./appdir/usr/bin/
- mkdir -p appdir/usr/share/applications ; cp doc/linux-desktop/okcashd.desktop ./appdir/usr/share/applications/
- mkdir -p appdir/usr/share/icons/hicolor/256x256/apps ; cp doc/linux-desktop/okcashd.png ./appdir/usr/share/icons/hicolor/256x256/apps/
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage

after_success:
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
- # curl --upload-file Okcash*.AppImage https://transfer.sh/okcash-git.$(git rev-parse --short HEAD)-x86_64.AppImage
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh Okcash*.AppImage*

branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/
15 changes: 0 additions & 15 deletions ctest.travis.yml

This file was deleted.

0 comments on commit 33fdd46

Please sign in to comment.