Download:
child 303:572cd24c2c2f
parent 301:2d95d63792f0
302:59923ed57ab1
Anton Shestakov <av6@dwimlabs.net>, Wed, 27 Jun 2018 23:06:14 +0800
pipelines: check `make libs` instead of `contrib/updatesri.sh` Also rm the latter because unused.

2 файлов изменено, 2 вставок(+), 17 удалений(-) [+]
bitbucket-pipelines.yml file | annotate | diff | comparison | revisions
contrib/updatesri.sh file | annotate | diff | comparison | revisions
--- a/bitbucket-pipelines.yml Wed Jun 27 22:58:20 2018 +0800
+++ b/bitbucket-pipelines.yml Wed Jun 27 23:06:14 2018 +0800
@@ -22,7 +22,5 @@
- hg d
- test $(HGPLAIN=1 hg d | wc -l) -eq 0
- - apt-get install -y curl
- - contrib/updatesri.sh *.html
- - hg d
- - test $(HGPLAIN=1 hg d | wc -l) -eq 0
+ - apt-get install -y wget tar
+ - make -j libs
--- a/contrib/updatesri.sh Wed Jun 27 22:58:20 2018 +0800
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-#!/bin/bash
-
-set -euo pipefail
-
-( egrep -oh 'https://[^"]+\.js' "$@" || true ) | sort -u | while read -r url; do
- hash=$(curl -fsS "$url" | openssl dgst -sha384 -binary | openssl base64 -A)
- sed -i "\|$url| c\\ <script src=\"$url\" integrity=\"sha384-$hash\" crossorigin=\"anonymous\"></script>" "$@"
-done
-
-( egrep -oh 'https://[^"]+\.css' "$@" || true ) | sort -u | while read -r url; do
- hash=$(curl -fsS "$url" | openssl dgst -sha384 -binary | openssl base64 -A)
- sed -i "\|$url| c\\ <link rel=\"stylesheet\" href=\"$url\" integrity=\"sha384-$hash\" crossorigin=\"anonymous\">" "$@"
-done