Travis configuration (#1)

This commit is contained in:
TheAssassin 2018-05-30 21:27:39 +02:00 committed by GitHub
parent e598536173
commit 17b55f02e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 0 deletions

31
.travis.yml Normal file
View File

@ -0,0 +1,31 @@
language: cpp
sudo: required
addons:
apt:
update: true
packages:
- libboost-regex1.55-dev
- libboost-filesystem1.55-dev
- libmagick++-dev
- automake # required for patchelf
install:
- git clone https://github.com/NixOS/patchelf.git
- cd patchelf
- ./bootstrap.sh
- ./configure --prefix=/usr
- make -j$(nproc)
- sudo make install
- cd ..
- rm -rf patchelf
script:
- mkdir build
- cd build
- cmake ..
- make VERBOSE=1
- bin/linuxdeploy --init-appdir --appdir AppDir -e bin/linuxdeploy -i ../resources/linuxdeploy.png --create-desktop-file
- wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
- chmod +x appimagetool-x86_64.AppImage
- ./appimagetool-x86_64.AppImage AppDir

BIN
resources/linuxdeploy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -20,6 +20,7 @@ execute_process(
add_library(core elf.cpp log.cpp appdir.cpp desktopfile.cpp ${HEADERS})
target_link_libraries(core Boost::filesystem Boost::regex subprocess cpp-feather-ini-parser PkgConfig::magick++ ${CMAKE_THREAD_LIBS_INIT})
target_include_directories(core PRIVATE ${CMAKE_CURRENT_BINARY_DIR})
target_compile_definitions(core PUBLIC -DBOOST_NO_CXX11_SCOPED_ENUMS)
add_executable(linuxdeploy main.cpp)
target_link_libraries(linuxdeploy core args)