Debian Codegraph @

testing/web-platform/tests/tools/ci/azure/install_certs.yml

raw
1 steps:
2 - script: |
3 set -eux -o pipefail
4 # https://github.com/web-platform-tests/results-collection/blob/master/src/scripts/trust-root-ca.sh
5 # only run this on macOS < 11
6 [ "11" = "`echo -e $( sw_vers -productVersion )\\\n11 | sort -V | head -n1`" ] || sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain tools/certs/cacert.pem
7 displayName: 'Install web-platform.test certificate (macOS)'
8 condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
9 - script: certutil –addstore -enterprise –f "Root" tools\certs\cacert.pem
10 displayName: 'Install web-platform.test certificate (Windows)'
11 condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))