summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/ci/azure/install_certs.yml
blob: bee5ab084e37fe808960219d092db2c0a5a60f81 (plain)
1
2
3
4
5
6
7
8
9
10
11
steps:
- script: |
    set -eux -o pipefail
    # https://github.com/web-platform-tests/results-collection/blob/master/src/scripts/trust-root-ca.sh
    # only run this on macOS < 11
    [ "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
  displayName: 'Install web-platform.test certificate (macOS)'
  condition: and(succeeded(), eq(variables['Agent.OS'], 'Darwin'))
- script: certutil –addstore -enterprise –f "Root" tools\certs\cacert.pem
  displayName: 'Install web-platform.test certificate (Windows)'
  condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))