Browse Source

Add CI files

Signed-off-by: falkTX <falktx@falktx.com>
tags/2020-07-14
falkTX 3 years ago
parent
commit
c6d995000e
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 82 additions and 0 deletions
  1. +39
    -0
      .travis.yml
  2. +10
    -0
      .travis/before_install.sh
  3. +17
    -0
      .travis/install.sh
  4. +16
    -0
      .travis/script.sh

+ 39
- 0
.travis.yml View File

@@ -0,0 +1,39 @@
language: cpp

os: linux

dist: bionic

jobs:
include:
# linux native build
- os: linux
compiler: gcc
env:
- TARGET="linux"

# linux with win32 cross-compilation
- os: linux
compiler: gcc
env:
- TARGET="win32"

# linux with win64 cross-compilation
- os: linux
compiler: gcc
env:
- TARGET="win64"

before_install:
- bash ${TRAVIS_BUILD_DIR}/.travis/before_install.sh

install:
- bash ${TRAVIS_BUILD_DIR}/.travis/install.sh

script:
- bash ${TRAVIS_BUILD_DIR}/bootstrap.sh ${TARGET}
- bash ${TRAVIS_BUILD_DIR}/build.sh ${TARGET} ${PLUGINS}

#notifications:
#email: true
#irc: "ircs://chat.freenode.net:7070/#kxstudio"

+ 10
- 0
.travis/before_install.sh View File

@@ -0,0 +1,10 @@
#!/bin/bash

set -e

sudo add-apt-repository -y ppa:kxstudio-debian/kxstudio
sudo add-apt-repository -y ppa:kxstudio-debian/toolchain

sudo apt-get update -qq
sudo apt-get install kxstudio-repos
sudo apt-get update -qq

+ 17
- 0
.travis/install.sh View File

@@ -0,0 +1,17 @@
#!/bin/bash

set -e

# common
sudo apt-get install -y build-essential meson

if [ "${TARGET}" = "linux" ]; then
sudo apt-get install -y pkg-config libfreetype6-dev libx11-dev libxcomposite-dev libxrender-dev libxcursor-dev libasound2-dev libgl1-mesa-dev libglu1-mesa-dev

elif [ "${TARGET}" = "win32" ]; then
sudo apt-get install -y mingw-w64 binutils-mingw-w64-i686 g++-mingw-w64-i686 wine32-development-tools

elif [ "${TARGET}" = "win64" ]; then
sudo apt-get install -y mingw-w64 binutils-mingw-w64-x86-64 g++-mingw-w64-x86-64 wine64-development-tools

fi

+ 16
- 0
.travis/script.sh View File

@@ -0,0 +1,16 @@
#!/bin/bash

set -e

export DESTDIR=/tmp/distrho-ports

if [ "${TARGET}" = "win32" ]; then
EXTRA_ARGS="--cross-file scripts/meson/win32.ini"
elif [ "${TARGET}" = "win64" ]; then
EXTRA_ARGS="--cross-file scripts/meson/win64.ini"
fi

echo "meson build --buildtype release ${EXTRA_ARGS}"
meson build --buildtype release ${EXTRA_ARGS}
ninja -v -C build
ninja -C build install

Loading…
Cancel
Save