-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
70 lines (70 loc) · 2.86 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
language: cpp
sudo: false
matrix:
include:
- os: osx
osx_image: xcode8
compiler: clang
env: CXX_COMPILER='clang++' C_COMPILER='clang' Fortran_COMPILER='gfortran' BUILD_TYPE='Debug'
- os: osx
osx_image: xcode8
compiler: clang
env: CXX_COMPILER='clang++' C_COMPILER='clang' Fortran_COMPILER='gfortran' BUILD_TYPE='Release'
PROJECT_DEPLOY_TARGET="osx"
install:
- DEPS_DIR="${TRAVIS_BUILD_DIR}/deps"
- mkdir ${DEPS_DIR} && cd ${DEPS_DIR}
- |
if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then
CMAKE_URL="http://www.cmake.org/files/v3.3/cmake-3.3.2-Linux-x86_64.tar.gz"
mkdir cmake && travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
echo "The compiler is: ${CXX_COMPILER}"
echo "The CMake path is: ${DEPS_DIR}/cmake/bin"
CMAKE_EXECUTABLE=${DEPS_DIR}/cmake/bin/cmake
else
brew update
brew install cmake
CMAKE_EXECUTABLE=cmake
fi
before_script:
- export CXX=${CXX_COMPILER}
- export CC=${C_COMPILER}
- export FC=${Fortran_COMPILER}
- export PATH=$HOME/.local/bin:/usr/local/bin:/usr/bin:$PATH
script:
- cd ${TRAVIS_BUILD_DIR}
- mkdir build
- cd build
- CXX=${CXX_COMPILER} CC=${C_COMPILER} FC=${Fortran_COMPILER} $CMAKE_EXECUTABLE -G
Xcode .. -DCMAKE_BUILD_TYPE=${BUILD_TYPE} -DCMAKE_OSX_ARCHITECTURES="i386;x86_64"
- cd ..
- cmake --build build --config $BUILD_TYPE
after_success:
- |
if [ -n "${PROJECT_DEPLOY_TARGET+set}" ]; then
echo "Deploying package $PROJECT_DEPLOY_TARGET"
mkdir build/$PROJECT_DEPLOY_TARGET
mkdir build/deploy
cp -r build/$BUILD_TYPE/*.vst build/$PROJECT_DEPLOY_TARGET/.
cp -r build/$BUILD_TYPE/*.vst3 build/$PROJECT_DEPLOY_TARGET/.
cp -r build/$BUILD_TYPE/*.component build/$PROJECT_DEPLOY_TARGET/.
cd build
zip -r ${PROJECT_DEPLOY_TARGET}.zip $PROJECT_DEPLOY_TARGET
mv ${PROJECT_DEPLOY_TARGET}.zip deploy
cd ..
fi
before_deploy:
- export FILE_TO_UPLOAD=$(ls build/deploy/*.zip)
deploy:
provider: releases
api_key:
secure: BjkpLZMJqMgVidiQd3quIjW3J5yg8ymB0ARmDksyNvJtG+8QOjOcfoqZjSeL8SisUYkFMayRlyaHET+6fxkk4+KjynWggdkHOj1TUA+sIXwZdaZITiwdDbSCGyO1Ih07bl+CkSVjxJWQCbXeTfolJqoYqvrYXW50lmbJsEaJ3+yYJ5/n1dLUdR8+2f3dPsULDrS56mokzAZ4YtLocfBBO3Vns4jcj80VD6XNfzHDuMx4z/pP2X6pIftXrMDuDp3RaMVOw2fd2Mb8+OT2o6RaBNc5zRqcHQw6JyhpIsPN9HroURI3l0bNHt4nnefyml35QM7UdVsjOyErXYRy3NXEo7GHdAoT2ktEFuo+edQM3oNo22ZzpwF/9kF9J3Z9svL6SpnjKZo/E2UfbzHr+QCb3NLOfRM7NUCpMsU0mrmNshZdvgp2pdHSVFePuMvQAHWmfkQ0WUY6xGd1pGdFcJm4PiNRME1SfO6j/NnnvtJfOHnluqjKBy0056w8x/pwttRq4itKr4nSTWnQK6p8leYAll240e0Z4ZOaQNk/oY6hjxisaMrGdRcYEXe+9SPPxU3zMF69HJjAH1oTsBj7+IsoTZA4IFR+lphMQNBEymTEFYAyFkPpVwQOjdFb8arRZiiicavOeBRimwyoP9PRjPIVEVIspR1d5CLSM7OEESb2Uvc=
file_glob: true
file: ${FILE_TO_UPLOAD}
skip_cleanup: true
overwrite: true
on:
branch: master
condition: -n "${PROJECT_DEPLOY_TARGET+set}"
tags: true