-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
78 lines (78 loc) · 3.24 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
language: c
dist: trusty
sudo: required
notifications:
email: false
git:
submodules: true
matrix:
include:
- os: osx
compiler: clang
osx_image: xcode9.1
env: release_arch=Darwin-amd64-32
install:
- git submodule update --init --recursive
- curl -o ./llvm.tar.xz -L https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-darwin-apple.tar.xz
- tar xzf ./llvm.tar.xz && mv clang+llvm-9.0.0-x86_64-darwin-apple llvm
script:
- mkdir build && cd build
- cmake .. -GXcode -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9
- cmake --build . --config Release --target faustgen_tilde_project
before_deploy:
- cd $TRAVIS_BUILD_DIR
- cp -r faust/libraries external/libs
- cp -r src/ external/sources
- cp README.md external/README.txt
- cp LICENSE external/LICENSE.txt
- chmod 0444 external/.default.dsp
- curl -o ./external/faust-quick-reference.pdf http://faust.grame.fr/images/faust-quick-reference.pdf
- mv external faustgen~
- zip -r "faustgen_tilde-$release_arch-sources.zip" faustgen~
- os: linux
compiler: gcc
addons:
apt:
sources: ubuntu-toolchain-r-test
packages: g++-4.9
env: release_arch=Linux-amd64-32
install:
- export CXX=g++-4.9
- export CC=gcc-4.9
- git submodule update --init --recursive
- sudo apt-get install -y pkg-config libedit-dev
- curl -o ./llvm.tar.xz https://releases.llvm.org/9.0.0/clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04.tar.xz
- tar xvf ./llvm.tar.xz && mv clang+llvm-9.0.0-x86_64-linux-gnu-ubuntu-14.04 llvm
script:
- mkdir build && cd build
- cmake .. -DCMAKE_C_FLAGS=-m64 -DUSE_LLVM_CONFIG=off -DLLVM_DIR=./llvm/lib/cmake/llvm
-DCMAKE_BUILD_TYPE=Release
- cmake --build . --config Release --target faustgen_tilde_project
before_deploy:
- cd $TRAVIS_BUILD_DIR
- cp -r faust/libraries external/libs
- cp -r src/ external/sources
- cp README.md external/README.txt
- cp LICENSE external/LICENSE.txt
- chmod 0444 external/.default.dsp
- curl -o ./external/faust-quick-reference.pdf http://faust.grame.fr/images/faust-quick-reference.pdf
- mv external faustgen~
- zip -r "faustgen_tilde-$release_arch-sources.zip" faustgen~
- ./make-dist.sh
deploy:
provider: releases
skip_cleanup: true
prerelease: true
draft: true
overwrite: true
name: ${TRAVIS_TAG}
tag_name: ${TRAVIS_TAG}
api_key:
secure: K5Fu30/Jahwit18UpJBti48aLE7Z1U3VmiZCgdnYBQHnNAyZ9g5IsILRegU9p7m1yY2AMQbl/eIybYDtfVldTSCdxEaeGta5Q+emV5TUzj/na9kNduZlXSaVgIzZ6rWtdRJQsaaBL7Q7F++o3AlDl6jvi8N41EbIpMy5Enkux4ZkGKvOftviBip5OTnkmM3MFZWGVOgnFV//DvMXBSLtHgSylSnq8jE++7DvyMlN6C9yZIGcBy7ZRpMGD7aqccCy2u41gQq286IQBPPfqmzcZOgC1s1jbM8+oD0Hl9e5LaA/D8tnrt2lZbfh5R+ULGgXd7BAGp/I/+ketCWEnMqg3bV1jTXglweIGmC+uTSAiu9hAfGW5DCzVYc4G15rnniy/HlXS7qCyTuow377HfqtRdqGe4lulSxvmIWGsCAgjXuXnaTSDR70Mer0g6bsNijDa5f28c68KCv9Kq6Oy8CMmGOAmUoO7Yp5y3jVUHlHpwxMukH35ScJaauEzzPqu0CbR/bx5+nGNIllkT7yzeOI+YMq6deLnakG/4iBqmWfgtTnTUDq1Q+hm+RtYjS0JQ5LKMKjMui+/UFSGZ1ZTer+NWhmL2sWXtYyYOPwLWY+AdDAHGOq386CsohMQ36seAiU3X5bC1icBK3tG93nrJEIucgVmDeAvsrHHX41FHW8dL4=
file_glob: true
file:
- "faustgen_tilde-$release_arch-sources.zip"
- '*.tar.gz'
on:
repo: CICM/pd-faustgen
tags: true