-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # CHANGELOG.md # Verovio.podspec # bindings/java/pom.xml # bindings/python/setup.py # codemeta.json # include/vrv/vrvdef.h
- Loading branch information
Showing
100 changed files
with
18,289 additions
and
2,005 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,118 @@ | ||
branches: | ||
only: | ||
- develop | ||
- develop | ||
|
||
sudo: false | ||
os: linux | ||
dist: bionic | ||
language: cpp | ||
|
||
git: | ||
depth: | ||
3 | ||
|
||
env: | ||
global: | ||
- COMMIT_AUTHOR_EMAIL: "$(git log -1 --pretty=format:'%aE')" # TODO: switch author email back to: "[email protected]" if necessary | ||
- SHA: "$(git rev-parse --verify HEAD)" | ||
# repos | ||
- EMSCRIPTEN_REPOSITORY: "https://github.com/emscripten-core/emsdk.git" | ||
- VEROVIO_REPOSITORY: "https://${GH_TOKEN}@github.com/rism-ch/verovio" | ||
# branches | ||
- BUILD_BRANCH: develop | ||
- GH_PAGES_BRANCH: gh-pages | ||
- TEMPORARY_OUTPUT_BRANCH: gh-pages-update-toolkit-${SHA} | ||
# directories | ||
- CURRENT_PATH: "$(pwd)" | ||
- EMSCRIPTEN_DIRECTORY: "emsdk" | ||
- GH_PAGES_DIRECTORY: "gh-pages" | ||
- OUTPUT_DIRECTORY: "${CURRENT_PATH}/${GH_PAGES_DIRECTORY}" | ||
|
||
# cache emscripten installation, tools build and output directory to be used throughout different stages | ||
cache: | ||
directories: | ||
- $EMSCRIPTEN_DIRECTORY | ||
- $GH_PAGES_DIRECTORY | ||
- tools | ||
|
||
# define order of stages | ||
# conditions for any stage can be included here | ||
stages: | ||
- build-c++ | ||
- precache | ||
- build-toolkit | ||
- deploy | ||
|
||
jobs: | ||
include: | ||
# test build on osx and an linux with g++ | ||
################# | ||
# BUILD-C++ STAGE | ||
################# | ||
# tests builds on osx and on linux with g++ | ||
- stage: build-c++ | ||
name: osx-xcode | ||
name: osx-xcode-11.1 | ||
os: osx | ||
osx_image: xcode11.1 | ||
script: | ||
- cd tools | ||
- cmake . | ||
- make | ||
- name: linux-g++-5 | ||
- name: linux-g++ | ||
os: linux | ||
dist: bionic | ||
script: | ||
- cd tools | ||
- cmake . | ||
- make | ||
# deploy emscripten build and doxygen | ||
|
||
################ | ||
# PRECACHE STAGE | ||
################ | ||
# precaches the emscripten installation, gh-pages, and make-build | ||
# has to come before "build-toolkit" stage | ||
- stage: precache | ||
name: "Precache emscripten installation, make build and gh-pages" | ||
os: linux | ||
script: | ||
- ./travis/ci_precache.sh | ||
|
||
##################### | ||
# BUILD-TOOLKIT STAGE | ||
##################### | ||
# builds toolkit with different options in parallel | ||
# all "substages" have to use the same stage id ("build-toolkit") | ||
- stage: build-toolkit | ||
name: "no humdrum" | ||
os: linux | ||
script: | ||
- ./travis/ci_build-toolkit.sh nohumdrum | ||
- name: "no humdrum light" | ||
os: linux | ||
script: | ||
- ./travis/ci_build-toolkit.sh light | ||
- name: "no humdrum wasm" | ||
os: linux | ||
script: | ||
- ./travis/ci_build-toolkit.sh wasm | ||
- name: "default (with humdrum)" | ||
os: linux | ||
script: | ||
- travis_wait 30 ./travis/ci_build-toolkit.sh default | ||
|
||
############## | ||
# DEPLOY stage | ||
############## | ||
# deploys toolkit and doxygen builds in parallel | ||
- stage: deploy | ||
# name: emscripten | ||
# os: linux | ||
# dist: bionic | ||
# env: | ||
# global: | ||
# - COMMIT_AUTHOR_EMAIL: "[email protected]" | ||
# script: | ||
# - git clone https://github.com/emscripten-core/emsdk.git | ||
# - cd emsdk | ||
# - ./emsdk install latest | ||
# - ./emsdk activate latest | ||
# - source ./emsdk_env.sh | ||
# - cd .. | ||
# - ./deploy-develop.sh | ||
# - | ||
name: doxygen | ||
os: linux | ||
dist: bionic | ||
name: toolkit | ||
os: linux | ||
skip_cleanup: true | ||
script: | ||
- ./travis/ci_deploy-toolkit.sh | ||
- name: doxygen | ||
os: linux | ||
addons: | ||
apt: | ||
packages: | ||
- doxygen | ||
env: | ||
global: | ||
- COMMIT_AUTHOR_EMAIL: "[email protected]" | ||
script: | ||
- ./deploy-doxygen.sh | ||
- ./travis/ci_deploy-doxygen.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.