Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add simple update script and CI check for 3rd party libs. #634

Merged
merged 1 commit into from
Oct 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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 -