rncbc/qtractor:.travis.yml@329d782
language: cpp
sudo: required
dist: focal
notifications:
email:
recipients:
- rncbc@rncbc.org
on_success: change
on_failure: always
branches:
only:
- master
before_install:
- sudo add-apt-repository --yes ppa:beineri/opt-qt-5.15.2-focal
- sudo add-apt-repository --yes ppa:rncbc/libs-focal
- sudo apt-get update -qq
install:
- sudo apt-get install -qq qt515base qt515tools libgl-dev; source /opt/qt515/bin/qt515-env.sh
- sudo apt-get install -qq libjack-dev libasound2-dev libsndfile1-dev
- sudo apt-get install -qq libvorbis-dev libmad0-dev libsamplerate-dev zlib1g-dev
- sudo apt-get install -qq ladspa-sdk dssi-dev liblo-dev librubberband-dev vst3sdk-dev
- sudo apt-get install -qq lv2-dev liblilv-dev libsratom-dev libsord-dev libserd-dev
- sudo apt-get install -qq libsuil-dev libaubio-dev libgtk2.0-dev
before_script:
- git fetch --unshallow --tags -q
- ./autogen.sh
script:
- ./configure
- make
- sudo make install
Build Config
{
"os": [
"linux"
],
"env": {
"global": [
{
"TRAVIS_COMMIT_SHORT": "\"$(echo $TRAVIS_COMMIT | cut -b1-7)\""
},
{
"TRAVIS_COMMIT_LESSSHORT": "\"$(echo $TRAVIS_COMMIT | cut -b1-9)\""
}
]
},
"dist": "xenial",
"group": "edge",
"matrix": {
"include": [
{
"name": "linux",
"stage": "test",
"addons": {
"artifacts": {
"paths": [
"./build/linux/amd64/gcloud-cleanup",
"./build/darwin/amd64/gcloud-cleanup",
"./build.tar.gz"
],
"target_paths": [
"travis-ci/gcloud-cleanup/$TRAVIS_BRANCH",
"travis-ci/gcloud-cleanup/$TRAVIS_COMMIT",
"travis-ci/gcloud-cleanup/$TRAVIS_COMMIT_SHORT",
"travis-ci/gcloud-cleanup/$TRAVIS_COMMIT_LESSSHORT"
]
}
},
"script": [
"make copyright",
"git diff --exit-code",
"git diff --cached --exit-code",
"make"
],
"after_success": [
"bash <(curl -s https://codecov.io/bash)",
"tar -czvf build.tar.gz build Procfile Makefile"
],
"before_script": [
"eval \"$(gimme 1.11.4)\""
]
},
{
"if": "type != 'pull_request'",
"name": "docker",
"addons": {
"apt": {
"packages": [
"docker-ce"
]
}
},
"script": [
"export DOCKER_IMAGE_REPO=travisci/gcloud-cleanup",
"export VERSION_VALUE=$(git describe --always --dirty --tags 2>/dev/null)",
"export DOCKER_DEST=$DOCKER_IMAGE_REPO:$VERSION_VALUE",
"docker build -t $DOCKER_DEST .",
"docker run --rm -it $DOCKER_DEST gcloud-cleanup --help",
"script/docker-push $DOCKER_DEST"
]
}
]
},
"language": "shell"
}