Added stages to travis and moved the doxygen in the Deploy stage with travis conditions
This commit is contained in:
parent
4ac7b9c2c5
commit
18529e21f8
2 changed files with 34 additions and 21 deletions
49
.travis.yml
49
.travis.yml
|
|
@ -1,20 +1,21 @@
|
||||||
language: cpp
|
language: cpp
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
|
||||||
- os: linux
|
- os: linux
|
||||||
|
stage: "Build"
|
||||||
|
name: "Windows mingw32"
|
||||||
env:
|
env:
|
||||||
- CROSS_COMPILE=mingw32
|
- CROSS_COMPILE=mingw32
|
||||||
- CONTAINER=cross
|
- CONTAINER=cross
|
||||||
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-mingw32"
|
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-mingw32"
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
|
name: "Windows mingw64"
|
||||||
env:
|
env:
|
||||||
- CROSS_COMPILE=mingw64
|
- CROSS_COMPILE=mingw64
|
||||||
- CONTAINER=cross
|
- CONTAINER=cross
|
||||||
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-mingw64"
|
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-mingw64"
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
|
name: "Linux amd64 library"
|
||||||
arch: amd64
|
arch: amd64
|
||||||
dist: bionic
|
dist: bionic
|
||||||
env:
|
env:
|
||||||
|
|
@ -23,11 +24,8 @@ jobs:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
||||||
|
|
||||||
packages:
|
|
||||||
- doxygen
|
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
|
name: "Linux arm64 library"
|
||||||
arch: arm64
|
arch: arm64
|
||||||
dist: bionic
|
dist: bionic
|
||||||
env:
|
env:
|
||||||
|
|
@ -36,8 +34,8 @@ jobs:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
|
name: "Linux arm64 static LV2"
|
||||||
arch: arm64
|
arch: arm64
|
||||||
dist: bionic
|
dist: bionic
|
||||||
env:
|
env:
|
||||||
|
|
@ -47,9 +45,9 @@ jobs:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
arch: amd64
|
name: "Linux amd64 static LV2"
|
||||||
|
name: "sfizz-linux-amd64-lv2"
|
||||||
dist: bionic
|
dist: bionic
|
||||||
env:
|
env:
|
||||||
- BUILD_TYPE=lv2
|
- BUILD_TYPE=lv2
|
||||||
|
|
@ -58,13 +56,15 @@ jobs:
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
- sourceline: 'ppa:ubuntu-toolchain-r/test'
|
||||||
|
|
||||||
- os: osx
|
- os: osx
|
||||||
|
name: "macOS"
|
||||||
osx_image: xcode10.1
|
osx_image: xcode10.1
|
||||||
env:
|
env:
|
||||||
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-${TRAVIS_OS_NAME}-${TRAVIS_CPU_ARCH}"
|
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-${TRAVIS_OS_NAME}-${TRAVIS_CPU_ARCH}"
|
||||||
|
|
||||||
- os: linux
|
- os: linux
|
||||||
|
stage: "Deploy"
|
||||||
|
name: "Source packaging"
|
||||||
env:
|
env:
|
||||||
- BUILD_TYPE=source
|
- BUILD_TYPE=source
|
||||||
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-src"
|
- INSTALL_DIR="sfizz-${TRAVIS_BRANCH}-src"
|
||||||
|
|
@ -72,19 +72,37 @@ jobs:
|
||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- python-pip
|
- python-pip
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- true
|
- true
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- sudo pip install git-archive-all
|
- sudo pip install git-archive-all
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- git-archive-all --prefix="sfizz-${TRAVIS_BRANCH}/" -9 "${INSTALL_DIR}.tar.gz"
|
- git-archive-all --prefix="sfizz-${TRAVIS_BRANCH}/" -9 "${INSTALL_DIR}.tar.gz"
|
||||||
|
|
||||||
after_failure:
|
after_failure:
|
||||||
- true
|
- true
|
||||||
|
after_success:
|
||||||
|
- true
|
||||||
|
|
||||||
|
- os: linux
|
||||||
|
name: "Generate documentation"
|
||||||
|
dist: bionic
|
||||||
|
# Change before integrating...
|
||||||
|
# if: (tag IS present) AND (branch = master)
|
||||||
|
if: (tag IS present) AND (branch = master)
|
||||||
|
addons:
|
||||||
|
apt:
|
||||||
|
packages:
|
||||||
|
- doxygen
|
||||||
|
- cmake
|
||||||
|
- libsndfile-dev
|
||||||
|
before_install:
|
||||||
|
- true
|
||||||
|
install:
|
||||||
|
- true
|
||||||
|
script:
|
||||||
|
- .travis/update_dox.sh
|
||||||
|
after_failure:
|
||||||
|
- true
|
||||||
after_success:
|
after_success:
|
||||||
- true
|
- true
|
||||||
|
|
||||||
|
|
@ -102,7 +120,6 @@ after_failure:
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- bash ${TRAVIS_BUILD_DIR}/.travis/discord_webhook.sh success
|
- bash ${TRAVIS_BUILD_DIR}/.travis/discord_webhook.sh success
|
||||||
- bash ${TRAVIS_BUILD_DIR}/.travis/update_dox.sh
|
|
||||||
- bash ${TRAVIS_BUILD_DIR}/.travis/after_success.sh
|
- bash ${TRAVIS_BUILD_DIR}/.travis/after_success.sh
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,7 @@
|
||||||
set -x # No fail, we need to go back to the original branch at the end
|
set -x # No fail, we need to go back to the original branch at the end
|
||||||
. .travis/environment.sh
|
. .travis/environment.sh
|
||||||
|
|
||||||
# Build documentation only from Linux x86_64 builds
|
mkdir build && cd build && cmake -DSFIZZ_JACK=OFF -DSFIZZ_SHARED=OFF -DSFIZZ_LV2=OFF .. && cd ..
|
||||||
if [[ ${TRAVIS_CPU_ARCH} != "amd64" || ${TRAVIS_OS_NAME} != "linux" || "${CROSS_COMPILE}" != "" || ${TRAVIS_TAG} == "" ]]; then
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
doxygen Doxyfile
|
doxygen Doxyfile
|
||||||
git fetch --depth=1 https://github.com/${TRAVIS_REPO_SLUG}.git refs/heads/gh-pages:refs/remotes/origin/gh-pages
|
git fetch --depth=1 https://github.com/${TRAVIS_REPO_SLUG}.git refs/heads/gh-pages:refs/remotes/origin/gh-pages
|
||||||
git checkout origin/gh-pages
|
git checkout origin/gh-pages
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue