summaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 0e6e104d80fa764f7cd3fa1cf74ed8e6148c0d24 (plain)
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
# travis.yml for zam-plugins uses 12.04 Ubuntu

os:
  - linux

language: c++

sudo: required

git:
  submodules: false

before_install:
  - sudo add-apt-repository ppa:kxstudio-team/builds -y
  - sudo apt-get update -q -y
  - sudo apt-get install apple-x86-gcc -y
  - sudo apt-get install apple-x86-odcctools -y
  - wget -c https://launchpad.net/~flosoft/+archive/ubuntu/cross-apple/+files/apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb --no-check-certificate
  - sudo dpkg -i apple-uni-sdk-10.5_20110407-0.flosoft1_amd64.deb
  - sudo apt-get install apple-x86-setup -y
  - sudo apt-get install apple-macports-liblo -y
  - sudo apt-get install apple-macports-fftw-3 -y
  - sudo apt-get install apple-macports-libsndfile -y
  - sudo apt-get install mingw64-x-gcc -y
  - sudo apt-get install mingw64-x-binutils -y
  - sudo apt-get install mingw32-x-binutils -y
  - sudo apt-get install mingw-x-pkgconfig -y
  - sudo apt-get install mingw-x-liblo -y
  - sudo apt-get install mingw-x-fftw3 -y
  - sudo apt-get install mingw-x-libsndfile -y
  - sudo apt-get install g++ -y
  - sudo apt-get install binutils -y
  - sudo apt-get install pkg-config -y
  - sudo apt-get install libx11-dev -y
  - sudo apt-get install libgl-dev -y
  - sudo apt-get install liblo-dev -y
  - sudo apt-get install fftw3-dev -y
  - sudo apt-get install libsndfile-dev -y
  - sudo apt-get install wine -y
  - sudo apt-get install libjack-dev -y
  - sudo apt-get install ladspa-sdk -y

cache:
  - apt

script:
  - cd zam-plugins
  - rm -fr dpf
  - git clone https://github.com/zamaudio/DPF dpf
  - cd dpf
  - git checkout build-osxwin
  - cd ..
  - export CC=gcc
  - export CXX=g++
  - export AR=ar
  - make LINUX=true -j2
  - mv bin linux
  - mkdir bin
  - export CC=i686-apple-darwin10-gcc
  - export CXX=i686-apple-darwin10-g++
  - export AR=i686-apple-darwin10-ar
  - make clean
  - make MACOS=true MACOS_OLD=true -j2
  - mv bin osx
  - mkdir bin
  - export CC=x86_64-w64-mingw32-gcc
  - export CXX=x86_64-w64-mingw32-g++
  - export AR=x86_64-w64-mingw32-ar
  - make clean
  - rm -fr ~/.wine
  - make WIN32=true -j2
  - mv bin win32
  - mkdir bin
  - make clean
  - rm -fr ~/.wine
  - make WIN64=true -j2
  - mv bin win64
  - mkdir bin
  - cd win64
  - for f in *.lv2; do cd $f; cp *.ttl ../../osx/$f/ ; cd .. ; done
  - cd ../osx
  - for f in *.lv2; do cd $f; perl -pi -e 's/dll/dylib/g' manifest.ttl; perl -pi -e 's/WindowsUI/CocoaUI/g' manifest.ttl; cd .. ; done
  - cd ../linux
  - zip -9 -r zam-plugins-`git describe`-linuxlv2.zip *.lv2
  - mv *.zip ../bin
  - cd ../osx
  - zip -9 -r zam-plugins-`git describe`-osxlv2.zip *.lv2
  - mv *.zip ../bin
  - cd ../win32
  - zip -9 -r zam-plugins-`git describe`-win32lv2.zip *.lv2
  - mv *.zip ../bin
  - cd ../win64
  - zip -9 -r zam-plugins-`git describe`-win64lv2.zip *.lv2
  - mv *.zip ../bin
  - cd ../bin
  - echo "ALL DONE!!!"

#deploy:
#  provider: releases
#  api_key: "GITHUB OAUTH TOKEN"
#  file:
#    - zam-plugins-`git describe`-linuxlv2.zip
#    - zam-plugins-`git describe`-osxlv2.zip
#    - zam-plugins-`git describe`-win32lv2.zip
#    - zam-plugins-`git describe`-win64lv2.zip
#  skip_cleanup: true
#  on:
#    tags: true