File: validate

package info (click to toggle)
ruby-mongo 2.23.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,020 kB
  • sloc: ruby: 110,810; makefile: 5
file content (22 lines) | stat: -rwxr-xr-x 479 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# This script can be used to validate the contents of Evergreen configuration
# and shell scripts (as much as possible) locally, prior to starting patch
# and/or pull request builds. Invoke it with a relative or absolute path
# like so:
#
# ./.evergreen/validate

set -e

this_dir="$(dirname "$0")"

for yml in "$this_dir"/*.yml; do
  echo "Validating $yml"
  evergreen validate "$yml"
done

for sh in "$this_dir"/*.sh; do
  echo "Validating $sh"
  bash -n "$sh"
done