-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 891 Bytes
/
.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
language: cpp
matrix:
include:
- os: linux
sudo: required
dist: trusty
- os: osx
before_install:
- git clone --recursive --depth 1 https://github.com/supercollider/supercollider.git ../supercollider
before_script:
- mkdir build
- cd build
- 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/steroids-$TRAVIS_OS_NAME-$TRAVIS_TAG.zip *
deploy:
# github releases - only tags
- provider: releases
api_key: $GITHUB_TOKEN
file: $HOME/artifacts/steroids-$TRAVIS_OS_NAME-$TRAVIS_TAG.zip
skip_cleanup: true
on:
condition: -n "$GITHUB_TOKEN"
tags: true
all_branches: true