-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 1.07 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
language: cpp
matrix:
include:
- os: linux
sudo: required
dist: trusty
- os: osx
addons:
apt:
packages:
- libboost-dev
before_install:
- git clone --recursive --depth 1 https://github.com/supercollider/supercollider.git ../supercollider
before_script:
- mkdir build
- cd build
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get update -qq; fi
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then sudo apt-get install libboost-dev; fi
- cmake -DCMAKE_INSTALL_PREFIX=_install -DCMAKE_BUILD_TYPE=Release -DCMAKE_PATH=../supercollider ..
script:
- cmake --build . --target install
before_deploy:
- mkdir -p $HOME/artifacts
- cd $TRAVIS_BUILD_DIR/build/_install
- zip -r --symlinks $HOME/artifacts/dbap-$TRAVIS_OS_NAME-$TRAVIS_TAG.zip *
deploy:
# github releases - only tags
- provider: releases
api_key: $GITHUB_TOKEN
file: $HOME/artifacts/dbap-$TRAVIS_OS_NAME-$TRAVIS_TAG.zip
skip_cleanup: true
on:
condition: -n "$GITHUB_TOKEN"
tags: true
all_branches: true