Skip to content

Commit

Permalink
Add simple update script and CI check for 3rd party libs.
Browse files Browse the repository at this point in the history
  • Loading branch information
riannucci authored and SunSparc committed Oct 11, 2021
1 parent 96b4785 commit c84ba39
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -14,6 +14,7 @@ go:
install:
- go get -t ./...

before_script: ./check_third_party.sh
script: go test -short -v ./...

sudo: false
9 changes: 9 additions & 0 deletions check_third_party.sh
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

./web/client/resources/js/lib/update.sh

if ! (git diff-files --quiet); then
echo "Third party libraries don't match their .url files."
echo "Re-run ./web/client/resources/js/lib/update.sh"
exit 1
fi
9 changes: 9 additions & 0 deletions web/client/resources/js/lib/update.sh
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

config_file=()

for url in *.url; do
config_file+=(-o"$(basename "$url" .url)" url=\"$(cat "$url")\")
done

printf "%s\n" "${config_file[@]}" | curl --parallel --parallel-immediate --config -

0 comments on commit c84ba39

Please sign in to comment.