Browse Source

add install step to CI

cairo_optimizations
Alexandros Theodotou 3 years ago
parent
commit
795d115416
Signed by: alex
GPG Key ID: 022EAE42313D70F3
  1. 14
      .builds/archlinux.yml
  2. 3
      .builds/debian.yml
  3. 3
      .builds/fedora.yml
  4. 3
      .builds/freebsd.yml
  5. 4
      .builds/ubuntu.yml
  6. 3
      .builds/ubuntu1804.yml
  7. 1
      .travis.yml
  8. 13
      data/meson.build
  9. 6
      meson_options.txt

14
.builds/archlinux.yml

@ -23,16 +23,28 @@ packages: @@ -23,16 +23,28 @@ packages:
- lv2
- rubberband
- xdg-utils
- lcov
- gcovr
sources:
- https://git.sr.ht/~alextee/zrythm
- https://github.com/mesonbuild/meson
secrets:
- ffff20bf-6fd3-40d6-b26a-92f6c8dc1fcf
tasks:
- setup: |
cd zrythm
../meson/meson.py build -Denable_tests=true -Dmanpage=true -Denable_ffmpeg=true
../meson/meson.py build -Denable_tests=true -Dmanpage=true -Denable_ffmpeg=true -Db_coverage=true
- build: |
cd zrythm
ninja -C build
- test: |
cd zrythm
ninja -C build test
ninja -C build coverage-text
cat build/meson-logs/coverage.txt
bash <(curl -s https://codecov.io/bash) -t $(cat ~/.codecov_token | tr '\n' '')
- install: |
cd zrythm
DESTDIR=/tmp ninja -C build install
- deploy: |
echo TODO

3
.builds/debian.yml

@ -37,3 +37,6 @@ tasks: @@ -37,3 +37,6 @@ tasks:
- test: |
cd zrythm
ninja -C build test
- install: |
cd zrythm
DESTDIR=/tmp ninja -C build install

3
.builds/fedora.yml

@ -37,3 +37,6 @@ tasks: @@ -37,3 +37,6 @@ tasks:
- test: |
cd zrythm
ninja -C build test
- install: |
cd zrythm
DESTDIR=/tmp ninja -C build install

3
.builds/freebsd.yml

@ -47,3 +47,6 @@ tasks: @@ -47,3 +47,6 @@ tasks:
- test: |
cd zrythm
ninja -C build test
- install: |
cd zrythm
DESTDIR=/tmp ninja -C build install

4
.builds/ubuntu.yml

@ -37,4 +37,6 @@ tasks: @@ -37,4 +37,6 @@ tasks:
- test: |
cd zrythm
ninja -C build test
- install: |
cd zrythm
DESTDIR=/tmp ninja -C build install

3
.builds/ubuntu1804.yml

@ -33,3 +33,6 @@ tasks: @@ -33,3 +33,6 @@ tasks:
- test: |
cd zrythm
ninja -C build test
- install: |
cd zrythm
DESTDIR=/tmp ninja -C build install

1
.travis.yml

@ -56,6 +56,7 @@ script: @@ -56,6 +56,7 @@ script:
meson build -Denable_sdl=true -Denable_rtaudio=true -Denable_rtmidi=true
ninja -C build
ninja -C build test
ninja -C build install
else
# hack to enable tests
$mingw64 sed -i -e '27s/false/true/' meson_options.txt

13
data/meson.build

@ -64,11 +64,12 @@ install_data ( @@ -64,11 +64,12 @@ install_data (
join_paths (
[datadir, 'mime/packages']))
# install bash completion
install_data (
'zrythm-completion.bash',
install_dir: '/etc/bash_completion.d',
install_mode: 'r--r--r--',
rename: 'zrythm')
if get_option ('install_bash_completion')
install_data (
'zrythm-completion.bash',
install_dir: '/etc/bash_completion.d',
install_mode: 'r--r--r--',
rename: 'zrythm')
endif
subdir('windows')

6
meson_options.txt

@ -107,6 +107,12 @@ option ( @@ -107,6 +107,12 @@ option (
transport meters. Packagers should turn this off and
set the font as a dependency instead''')
option (
'install_bash_completion',
type: 'boolean',
value: false,
description: 'Install bash completion')
option (
'windows_release',
type: 'boolean',

Loading…
Cancel
Save