-
Notifications
You must be signed in to change notification settings - Fork 12
/
.travis.yml
132 lines (132 loc) · 8.88 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
129
130
131
132
language: cpp
branches:
only:
- master
- dev
- devops
- /^\d+\.\d+(\.\d+)?(-\S*)?$/
matrix:
include:
- os: linux
dist: bionic
sudo: required
before_install:
- git clone https://github.com/subutai-io/devops.git /tmp/devops
- openssl aes-256-cbc -K $encrypted_ad13726c9b2f_key -iv $encrypted_ad13726c9b2f_iv -in travis.tar.gz.enc -out travis.tar.gz -d
- tar -xf travis.tar.gz -C /home/travis/build/subutai-io/control-center/
- gpg --allow-secret-key-import --import /home/travis/build/subutai-io/control-center/[email protected]
- gpg --allow-secret-key-import --import /home/travis/build/subutai-io/control-center/[email protected]
- rm /home/travis/build/subutai-io/control-center/*.gpg && rm /home/travis/build/subutai-io/control-center/*.p12
- LD_LIBRARY_PATH=/usr/local/lib64/:$LD_LIBRARY_PATH
- export LD_LIBRARY_PATH
- sudo apt-add-repository --yes ppa:ubuntu-toolchain-r/test
- sudo apt-get update
- sudo apt-get build-dep qt5-default
- sudo apt-get install libxcb-xinerama0-dev build-essential perl python git
'^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
flex bison gperf libicu-dev libxslt-dev ruby
libxcursor-dev libxcomposite-dev libxdamage-dev libxrandr-dev libxtst-dev libxss-dev libdbus-1-dev libevent-dev libfontconfig1-dev libcap-dev libpulse-dev libudev-dev libpci-dev libnss3-dev libasound2-dev libegl1-mesa-dev gperf bison nodejs
- sudo apt-get install build-essential libicu60 devscripts libssh2-1-dev libxi-dev
libxcb-xkb-dev libxrender-dev libxcb-image0-dev libxcb-render-util0-dev libxcb-icccm4-dev
libxcb-keysyms1-dev libxcb-xinerama0-dev libdconf-dev dh-autoreconf fakeroot
install:
- pyenv global 3.7
- pip install requests python-gnupg subutai-bazaar
script:
- sudo mkdir -p /home/subutai/ && sudo chmod 777 /home/subutai/
- wget --no-check-certificate -nv -O /home/subutai/qt_static.tar.gz 'https://masterbazaar.subutai.io/rest/v1/cdn/raw?name=qt_5.12.tar.gz&latest&download' && tar -xf /home/subutai/qt_static.tar.gz -C /home/subutai/
- wget --no-check-certificate -nv -O /home/travis/build/subutai-io/control-center/libs.tar.gz 'https://masterbazaar.subutai.io/rest/v1/cdn/raw?name=libs.tar.gz&latest&download' && tar -xf libs.tar.gz
- sudo /home/travis/build/subutai-io/control-center/./build_linux.sh $TRAVIS_BRANCH
- ls subutai_control_center_bin && sudo chmod 777 subutai_control_center_bin
- if [ $TRAVIS_BRANCH == "dev" ]; then cp subutai_control_center_bin/SubutaiControlCenter subutai_control_center_bin/SubutaiControlCenter-dev ; fi
- if [ $TRAVIS_BRANCH == "master" ]; then cp subutai_control_center_bin/SubutaiControlCenter subutai_control_center_bin/SubutaiControlCenter-master; fi
deploy:
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/subutai-control-center-dev.deb --host=devbazaar.subutai.io
skip_cleanup: true
on:
branch: dev
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/SubutaiControlCenter-dev --host=devbazaar.subutai.io
skip_cleanup: true
on:
branch: dev
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/subutai-control-center-master.deb --host=masterbazaar.subutai.io
skip_cleanup: true
on:
branch: master
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/SubutaiControlCenter-master --host=masterbazaar.subutai.io
skip_cleanup: true
on:
branch: master
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/SubutaiControlCenter
skip_cleanup: true
on:
tags: true
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/subutai-control-center.deb
skip_cleanup: true
on:
tags: true
- os: osx
osx_image: xcode11.2
before_install:
- git clone https://github.com/subutai-io/devops.git /tmp/devops
- openssl aes-256-cbc -K $encrypted_ad13726c9b2f_key -iv $encrypted_ad13726c9b2f_iv -in travis.tar.gz.enc -out travis.tar.gz -d
- tar -xf travis.tar.gz -C /Users/travis/build/subutai-io/control-center/
- gpg --allow-secret-key-import --import /Users/travis/build/subutai-io/control-center/[email protected]
- gpg --allow-secret-key-import --import /Users/travis/build/subutai-io/control-center/[email protected]
install:
- python3 -m pip install requests python-gnupg subutai-bazaar
script:
- sudo mkdir /Users/dev/ && sudo chmod 777 /Users/dev/
- wget --no-check-certificate -nv -O /Users/dev/Qt5.9.2.tar.gz 'https://bazaar.subutai.io/rest/v1/cdn/raw?name=Qt5.9.2.tar.gz&latest&download' && tar -xf /Users/dev/Qt5.9.2.tar.gz -C /Users/dev
- wget --no-check-certificate -nv -O /Users/travis/build/subutai-io/control-center/libs.tar.gz 'https://masterbazaar.subutai.io/rest/v1/cdn/raw?name=libs.tar.gz&latest&download' && tar -xf libs.tar.gz
- security create-keychain -p travis build.keychain
- security default-keychain -s build.keychain
- security unlock-keychain -p travis build.keychain
- security import /Users/travis/build/subutai-io/control-center/application.p12 -k build.keychain -P $MACOS_SECRET -T /usr/bin/codesign 2>&1 >/dev/null
- security import /Users/travis/build/subutai-io/control-center/installer.p12 -k build.keychain -P $MACOS_SECRET -T /usr/bin/codesign 2>&1 >/dev/null
- "security set-key-partition-list -S apple-tool:,apple,codesign: -s -k travis build.keychain"
- security find-identity -v -p codesigning
- rm /Users/travis/build/subutai-io/control-center/*.gpg && rm /Users/travis/build/subutai-io/control-center/*.p12
- sudo /Users/travis/build/subutai-io/control-center/./build_mac.sh $TRAVIS_BRANCH
- sudo /Users/travis/build/subutai-io/control-center/./pack_mac.sh $TRAVIS_BRANCH
- ls subutai_control_center_bin && ls subutai_control_center_bin/SubutaiControlCenter.app/Contents && sudo chmod 777 subutai_control_center_bin
- cp subutai_control_center_bin/SubutaiControlCenter.app/Contents/MacOS/SubutaiControlCenter subutai_control_center_bin/SubutaiControlCenter_osx
- if [ $TRAVIS_BRANCH == "dev" ]; then cp subutai_control_center_bin/SubutaiControlCenter_osx subutai_control_center_bin/SubutaiControlCenter-dev_osx ; fi
- if [ $TRAVIS_BRANCH == "master" ]; then cp subutai_control_center_bin/SubutaiControlCenter_osx subutai_control_center_bin/SubutaiControlCenter-master_osx; fi
deploy:
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/subutai-control-center-dev.pkg --host=devbazaar.subutai.io
skip_cleanup: true
on:
branch: dev
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/SubutaiControlCenter-dev_osx --host=devbazaar.subutai.io
skip_cleanup: true
on:
branch: dev
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/subutai-control-center-master.pkg --host=masterbazaar.subutai.io
skip_cleanup: true
on:
branch: master
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/SubutaiControlCenter-master_osx --host=masterbazaar.subutai.io
skip_cleanup: true
on:
branch: master
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/SubutaiControlCenter_osx
skip_cleanup: true
on:
tags: true
- provider: script
script: python3 /tmp/devops/upload.py [email protected] --fingerprint=877B586E74F170BC4CF6ECABB971E2AC63D23DC9 --file=subutai_control_center_bin/subutai-control-center.pkg
skip_cleanup: true
on:
tags: true