-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
executable file
·128 lines (121 loc) · 5.22 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
language: cpp
dist: trusty
sudo: false
notifications:
email: false
git:
submodules: false
matrix:
include:
- os: linux
compiler: gcc
env: Tests
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: [g++-4.9, 'python-pip', 'python-yaml', 'libssl1.0.0']
before_install:
- python --version
- python -c 'import ssl; print ssl.OPENSSL_VERSION;'
- sudo add-apt-repository ppa:webkit-team/ppa -y
- sudo apt-get update
- sudo apt-get install -y pkg-config libedit-dev libfreetype6-dev libx11-dev libxrandr-dev libxinerama1 libxinerama-dev libxcursor-dev libasound2-dev libgtk-3-dev libwebkit2gtk-4.0-dev
install:
- export CXX=g++-4.9 # make sure CXX is correctly set
- git submodule update --init --recursive
- pip install --user cpp-coveralls
script:
- cd $TRAVIS_BUILD_DIR
- mkdir Build && cd Build
- cmake .. -DCMAKE_C_FLAGS=-m64 -DCMAKE_BUILD_TYPE=Debug -DGCOV_SUPPORT=On
- cmake --build . --config Debug --target Tests -- -j 4
after_success:
- coveralls -i Modules --gcov-options '\-lp' > /dev/null
- os: linux
compiler: gcc
env: Deployment
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: [g++-4.9, 'python-pip', 'python-yaml', 'libssl1.0.0']
before_install:
- python --version
- python -c 'import ssl; print ssl.OPENSSL_VERSION;'
- sudo add-apt-repository ppa:webkit-team/ppa -y
- sudo apt-get update
- sudo apt-get install -y pkg-config libedit-dev libfreetype6-dev libx11-dev libxrandr-dev libxinerama1 libxinerama-dev libxcursor-dev libasound2-dev libgtk-3-dev libwebkit2gtk-4.0-dev
install:
- export CXX=g++-4.9 # make sure CXX is correctly set
- git submodule update --init --recursive
script:
- cd $TRAVIS_BUILD_DIR
- mkdir Build && cd Build
- cmake .. -DCMAKE_C_FLAGS=-m64 -DCMAKE_BUILD_TYPE=Release
- cmake --build . --target Kiwi --config Release -- -j 4
- cmake --build . --target Server --config Release -- -j 4
after_success:
- cd $TRAVIS_BUILD_DIR
# Client
- mkdir Kiwi
- cp -r docs/ Kiwi/docs
- cp -r Resources/helps/ Kiwi/helps
- cp -r Resources/examples/ Kiwi/examples
- mkdir -p Kiwi/libs/faust && cp -r ThirdParty/faust/libraries/* Kiwi/libs/faust
- mv Build/KiwiBuild/Kiwi Kiwi/Kiwi
- cp Changelog.txt Kiwi/Changelog.txt
- zip -r Kiwi-linux-x64.zip Kiwi
# Server
- mkdir KiwiServer && mv Build/KiwiBuild/Server KiwiServer/Server
- zip -r Kiwi-server-linux-x64.zip KiwiServer
deploy:
provider: releases
api_key:
secure: atcBDMdJNzUGiUYSqQu/URg8mfvRk9b78tvj1eHKCeDXSTP0Y1UvI5YpmTx8SkUXp23QH4sgp0tKTFB98FbRojR4IL2NW+KZDG1o5BxZ4HYJ4hdCXXXhzeujcn2AjQzRJ9f8uodX/7Pfa19jGlovj1Tl9ZJ9jIfyyvcxlJXkTN9+CDlkkcpLNU64c4B+CclS8aLPbIKqvLmIy3fphzzkJoKN5rnE4EvKrIkJBPEib1WIY8K7W8boCwghsGBs04MwRZwidKIjPSPgbYpmGPspfKpu0W8mKMirdGEVt4rzpm+Dl9wMa/5Qsyc6afYfS4p3PZOfBio0mtVrPz4+4VXy/Ad+FDNnvxUy9776D0pSv2iBrdHhqs6n1vG0uT4uhbGtvwJR3BBbo6+TmEKakRgp+uRhYEvGy/EO0OkcKrOVLsrZ/akj8O+KOSROrz2VYfxmDTxtUi8K51vW3pJhcGsEsN1FkcJfef/pvxGLK5i0qEZWoyCyA4YMPNDWFFiuBadPTujIGJ/iDmwouzalV9F0vKOIFvP9IuZ1FHLOyEzhyoBS3l1NNpQUz+HNgupTVYSREH1qPXUHg3B5BdFpEJpOjU/P8gwG4npcNxX/5XvigFFiTeEN+eV4xcBVLcg+SsumeswIqi5Tvm+mzYyqz3wj628ddWxgGiPFSfySI4tz6lg=
file:
- Kiwi-linux-x64.zip
- Kiwi-server-linux-x64.zip
skip_cleanup: true
draft: true
prerelease: false
name: ${TRAVIS_TAG}
tag_name: ${TRAVIS_TAG}
on:
repo: Musicoll/Kiwi
tags: true
- os: osx
compiler: clang++
env: Deployment
osx_image: xcode9.2
install:
- git submodule update --init --recursive
# Install a recent CMake
- brew install cmake || brew upgrade cmake
- cmake --version
script:
- cd $TRAVIS_BUILD_DIR
- mkdir Build && cd Build
- cmake .. -GXcode
- xcodebuild -scheme Kiwi -configuration Release
- xcodebuild -scheme Server -configuration Release
after_success:
- cd $TRAVIS_BUILD_DIR
- mkdir Kiwi && mv Build/KiwiBuild/Release/Kiwi.app Kiwi/Kiwi.app
- cp Changelog.txt Kiwi/Changelog.txt
- zip -r Kiwi-macos-x64.zip Kiwi
- mkdir KiwiServer && mv Build/KiwiBuild/Release/Server KiwiServer/Server
- zip -r Kiwi-server-macos-x64.zip KiwiServer
deploy:
provider: releases
api_key:
secure: atcBDMdJNzUGiUYSqQu/URg8mfvRk9b78tvj1eHKCeDXSTP0Y1UvI5YpmTx8SkUXp23QH4sgp0tKTFB98FbRojR4IL2NW+KZDG1o5BxZ4HYJ4hdCXXXhzeujcn2AjQzRJ9f8uodX/7Pfa19jGlovj1Tl9ZJ9jIfyyvcxlJXkTN9+CDlkkcpLNU64c4B+CclS8aLPbIKqvLmIy3fphzzkJoKN5rnE4EvKrIkJBPEib1WIY8K7W8boCwghsGBs04MwRZwidKIjPSPgbYpmGPspfKpu0W8mKMirdGEVt4rzpm+Dl9wMa/5Qsyc6afYfS4p3PZOfBio0mtVrPz4+4VXy/Ad+FDNnvxUy9776D0pSv2iBrdHhqs6n1vG0uT4uhbGtvwJR3BBbo6+TmEKakRgp+uRhYEvGy/EO0OkcKrOVLsrZ/akj8O+KOSROrz2VYfxmDTxtUi8K51vW3pJhcGsEsN1FkcJfef/pvxGLK5i0qEZWoyCyA4YMPNDWFFiuBadPTujIGJ/iDmwouzalV9F0vKOIFvP9IuZ1FHLOyEzhyoBS3l1NNpQUz+HNgupTVYSREH1qPXUHg3B5BdFpEJpOjU/P8gwG4npcNxX/5XvigFFiTeEN+eV4xcBVLcg+SsumeswIqi5Tvm+mzYyqz3wj628ddWxgGiPFSfySI4tz6lg=
file:
- Kiwi-macos-x64.zip
- Kiwi-server-macos-x64.zip
skip_cleanup: true
draft: true
prerelease: false
name: ${TRAVIS_TAG}
tag_name: ${TRAVIS_TAG}
on:
repo: Musicoll/Kiwi
tags: true