24
24
before_install :
25
25
# determine build identifier
26
26
- ' [ -n "${TRAVIS_PULL_REQUEST}" ] && export MULTIPASS_BUILD_ID="pr${TRAVIS_PULL_REQUEST}"'
27
+ # extract credentials
28
+ - openssl aes-256-cbc -K $encrypted_1b80fb3c7803_key -iv $encrypted_1b80fb3c7803_iv
29
+ -in tools/bot-data.tar.xz.enc -out tools/bot-data.tar.xz -d
30
+ - tar --extract --xz --file tools/bot-data.tar.xz --directory ${HOME}
27
31
28
32
install :
29
33
- sudo apt remove --purge --assume-yes lxd lxd-client
@@ -65,10 +69,15 @@ jobs:
65
69
- sg lxd -c '/snap/bin/snapcraft --use-lxd'
66
70
- /snap/bin/review-tools.snap-review --allow-classic *.snap
67
71
after_success :
68
- - [ -z "${TRAVIS_PULL_REQUEST}" ] && exit
69
- - BUILD_URL=$( curl --fail --max-time 600 --upload-file *.snap https://transfer.sh/ )
70
- && echo ${BUILD_URL}
71
- && ./tools/report-build.py Snap ${BUILD_URL}
72
+ - ' [ -z "${TRAVIS_PULL_REQUEST}" ] && exit'
73
+ - BUILDS=()
74
+ - snapcraft login --with ${HOME}/snap-login
75
+ - snapcraft push multipass_*.snap --release edge/${MULTIPASS_BUILD_ID}
76
+ && BUILDS+="`snap refresh multipass --channel edge/${MULTIPASS_BUILD_ID}`"
77
+ - CURL_OUTPUT=$( curl --fail --max-time 600 --upload-file *.snap https://transfer.sh/ )
78
+ && BUILDS+="[$( basename ${CURL_OUTPUT} )](${CURL_OUTPUT})";
79
+ echo ${CURL_OUTPUT}
80
+ - ./tools/report-build.py Snap "${BUILDS[@]}"
72
81
73
82
- env : BUILD_TYPE=Clang
74
83
before_script : *before_snapcraft
@@ -110,10 +119,7 @@ jobs:
110
119
submodules: false
111
120
sudo: false
112
121
addons: ~
113
- install:
114
- - openssl aes-256-cbc -K $encrypted_8d49841daf21_key -iv $encrypted_8d49841daf21_iv
115
- -in tools/bot-data.tar.xz.enc -out tools/bot-data.tar.xz -d
116
- - tar --extract --xz --file tools/bot-data.tar.xz --directory ${HOME}
122
+ install: ~
117
123
script:
118
124
- |
119
125
if [ "${TRAVIS_EVENT_TYPE}" == "pull_request" ]; then
@@ -125,10 +131,10 @@ jobs:
125
131
ssh -q -p ${MAC_PORT} ${MAC_USERHOST} multipass-build/build-in-snapshot.sh public "${REF}" "${ARTIFACTS_DIR}" "${MULTIPASS_BUILD_ID}"
126
132
scp -P ${MAC_PORT} ${MAC_USERHOST}:${ARTIFACTS_DIR}/*.pkg .
127
133
after_success:
128
- - [ -z "${TRAVIS_PULL_REQUEST}" ] && exit
129
- - BUILD_URL =$( curl --fail --max-time 600 --upload-file *.pkg https://transfer.sh/ )
130
- && echo ${BUILD_URL}
131
- && ./tools/report-build.py macOS ${BUILD_URL }
134
+ - ' [ -z "${TRAVIS_PULL_REQUEST}" ] && exit'
135
+ - CURL_OUTPUT =$( curl --fail --max-time 600 --upload-file *.pkg https://transfer.sh/ )
136
+ && ./tools/report-build.py macOS "[$( basename ${CURL_OUTPUT} )](${CURL_OUTPUT})";
137
+ echo ${CURL_OUTPUT }
132
138
after_script: ~
133
139
after_failure: ~
134
140
cache: ~
0 commit comments