File: full.sh

package info (click to toggle)
node-argv 0.0.2-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 152 kB
  • sloc: javascript: 636; sh: 21; makefile: 17
file content (29 lines) | stat: -rwxr-xr-x 534 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
cd `dirname $0`
cd ../
SRCROOT=${PWD}

# Clean out and rebuild before running through each enviorment
make clean

echo "===== NVM DIR::: $NVM_DIR ===="

# Find each availiable node version and test with that version
for i in $( ls $NVM_DIR )
do
	if [[ $i =~ ^v ]]; then
		echo ""
		echo ""
		echo "=== Node $i ==="
		echo ""

		# Run test suite
		"$NVM_DIR/$i/bin/node" "$SRCROOT/build/test.js"

		# Any non successful exit should be treated as full error
		RESULT=$?
		if [[ $RESULT != 0 ]]; then
			exit 1
		fi
	fi
done