<pre style='margin:0'>
Clemens Lang (neverpanic) pushed a commit to branch travis-ci
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/93cd5e520e508fc86a7cdfbbdee69b7ae9bd2cf3">https://github.com/macports/macports-base/commit/93cd5e520e508fc86a7cdfbbdee69b7ae9bd2cf3</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 93cd5e520e508fc86a7cdfbbdee69b7ae9bd2cf3
</span>Author: Clemens Lang <cal@macports.org>
AuthorDate: Wed Dec 9 20:09:26 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> ci: Add azure pipeline job to prepare 10.14 env
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> GitHub actions only supports 10.15 and 11, add an azure pipeline job
</span><span style='display:block; white-space:pre;color:#404040;'> (which is basically the same thing, except with minor changes in the
</span><span style='display:block; white-space:pre;color:#404040;'> file format) for 10.14.
</span>---
.github/azure-workflows/prepare-ci-env.yml | 85 ++++++++++++++++++++++++++++++
1 file changed, 85 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/.github/azure-workflows/prepare-ci-env.yml b/.github/azure-workflows/prepare-ci-env.yml
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000..acb0828b
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/.github/azure-workflows/prepare-ci-env.yml
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,85 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+trigger:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ branches:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - travis-ci
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tags:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ include:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - v*
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+jobs:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - job: prepare_ports_ci
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ displayName: "Prepare macports-ports CI environment"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ timeoutInMinutes: 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ strategy:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ matrix:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mac-10.14:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ imageName: 'macOS-10.14'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pool:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ vmImage: $(imageName)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ steps:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - displayName: "Checkout repository"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checkout: self
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fetchDepth: 64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - displayName: "Cleanup /usr/local"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bash: |
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo mkdir /opt/local.old
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo mv /usr/local/* /opt/local.old
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - displayName: "Configure MacPorts Base"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bash: |
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set -eu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ./configure
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - displayName: "Build MacPorts Base"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bash: |
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set -eu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ make
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - displayName: "Install MacPorts Base"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bash: |
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set -eu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo make install
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - displayName: "Test MacPorts Base"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bash: |
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set -eu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ make test
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - displayName: "Prepare Deployment"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bash: |
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set -eu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sed -i "" "s/-v selfupdate/version/" portmgr/dmg/postflight
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo install -d -m755 /opt/local/libexec/macports/postflight
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo install -m755 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ portmgr/dmg/postflight \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /opt/local/libexec/macports/postflight/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sudo install -m644 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/*.tcl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /opt/local/libexec/macports/postflight/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ tar \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --exclude '/opt/local/var/macports/sip-workaround/?*' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -cjf "MacPorts.tar.bz2" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ /opt/local
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ - displayName: "Deploy to bintray"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ bash: |
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set -eu
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # printf is a built-in, so this won't show up in ps(1)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ printf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "machine api.bintray.com\n\tlogin %s\n\tpassword %s\n" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "$user" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "$pass" > ~/.netrc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ chmod 600 ~/.netrc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ os_major=$(uname -r | cut -f 1 -d .)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ macports_version=$(cat config/macports_version)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256=$(openssl dgst -sha256 -binary "MacPorts.tar.bz2" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ | xxd -ps -c256)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ curl \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --upload-file "MacPorts.tar.bz2" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --netrc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --header "X-Checksum-Sha2: ${sha256}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --header "X-Bintray-Package: MacPorts" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --header "X-Bintray-Version: ${macports_version}" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --header "X-Bintray-Publish: 1" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --header "X-Bintray-Override: 1" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "https://api.bintray.com/content/macports-ci-env/macports-base/MacPorts-${os_major}.tar.bz2"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ env:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ user: "macports-ci-env"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pass: ${{ secrets.BINTRAY_API_TOKEN }}
</span></pre><pre style='margin:0'>
</pre>