Skip to content

Commit 693cee5

Browse files
committed
Update test script
1 parent 28b325f commit 693cee5

File tree

8 files changed

+110
-110
lines changed

8 files changed

+110
-110
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#!/bin/sh
2-
echo "[MeteorCLI - all-in-one] Resetting project"
3-
meteor reset
4-
echo "[MeteorCLI - all-in-one] Installing npm dependencies"
5-
npm ci
6-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7-
echo "[MeteorCLI - all-in-one] Installing meteor dependencies"
8-
meteor update --all-packages --allow-incompatible-update
9-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10-
echo "[MeteorCLI - all-in-one] Testing JIT"
11-
npm run test:ci
12-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13-
echo "[MeteorCLI - all-in-one] Testing AOT"
14-
AOT=1 meteor build ./.meteor/build-aot
15-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
16-
echo "[MeteorCLI - all-in-one] AOT w/ Rollup"
17-
AOT=1 ROLLUP=1 meteor build ./.meteor/build-aot-rollup
1+
#!/bin/sh
2+
echo "[MeteorCLI - all-in-one] Resetting project"
3+
meteor reset
4+
echo "[MeteorCLI - all-in-one] Installing npm dependencies"
5+
npm ci
6+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7+
echo "[MeteorCLI - all-in-one] Installing meteor dependencies"
8+
meteor update --all-packages --allow-incompatible-update
9+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10+
echo "[MeteorCLI - all-in-one] Testing JIT"
11+
npm run test:ci
12+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13+
echo "[MeteorCLI - all-in-one] Testing AOT"
14+
AOT=1 meteor build ./.meteor/build-aot
15+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
16+
echo "[MeteorCLI - all-in-one] AOT w/ Rollup"
17+
AOT=1 ROLLUP=1 meteor build ./.meteor/build-aot-rollup
1818
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi

examples/MeteorCLI/bare/run_tests.sh

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#!/bin/sh
2-
echo "[MeteorCLI - bare] Resetting project"
3-
meteor reset
4-
echo "[MeteorCLI - bare] Installing npm dependencies"
5-
npm ci
6-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7-
echo "[MeteorCLI - bare] Installing meteor dependencies"
8-
meteor update --all-packages --allow-incompatible-update
9-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10-
echo "[MeteorCLI - bare] Testing JIT"
11-
npm run test:ci
12-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13-
echo "[MeteorCLI - bare] Testing AOT"
14-
AOT=1 meteor build ./.meteor/build-aot
15-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
16-
echo "[MeteorCLI - bare] AOT w/ Rollup"
17-
AOT=1 ROLLUP=1 meteor build ./.meteor/build-aot-rollup
1+
#!/bin/sh
2+
echo "[MeteorCLI - bare] Resetting project"
3+
meteor reset
4+
echo "[MeteorCLI - bare] Installing npm dependencies"
5+
npm ci
6+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7+
echo "[MeteorCLI - bare] Installing meteor dependencies"
8+
meteor update --all-packages --allow-incompatible-update
9+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10+
echo "[MeteorCLI - bare] Testing JIT"
11+
npm run test:ci
12+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13+
echo "[MeteorCLI - bare] Testing AOT"
14+
AOT=1 meteor build ./.meteor/build-aot
15+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
16+
echo "[MeteorCLI - bare] AOT w/ Rollup"
17+
AOT=1 ROLLUP=1 meteor build ./.meteor/build-aot-rollup
1818
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#!/bin/sh
2-
echo "[MeteorCLI - lazy-loading] Resetting project"
3-
meteor reset
4-
echo "[MeteorCLI - lazy-loading] Installing npm dependencies"
5-
npm ci
6-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7-
echo "[MeteorCLI - lazy-loading] Installing meteor dependencies"
8-
meteor update --all-packages --allow-incompatible-update
9-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10-
echo "[MeteorCLI - lazy-loading] Testing JIT"
11-
npm run test:ci
12-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13-
echo "[MeteorCLI - lazy-loading] Testing AOT"
14-
AOT=1 meteor build ./.meteor/build-aot
15-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
16-
echo "[MeteorCLI - lazy-loading] AOT w/ Rollup"
17-
AOT=1 ROLLUP=1 meteor build ./.meteor/build-aot-rollup
1+
#!/bin/sh
2+
echo "[MeteorCLI - lazy-loading] Resetting project"
3+
meteor reset
4+
echo "[MeteorCLI - lazy-loading] Installing npm dependencies"
5+
npm ci
6+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7+
echo "[MeteorCLI - lazy-loading] Installing meteor dependencies"
8+
meteor update --all-packages --allow-incompatible-update
9+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10+
echo "[MeteorCLI - lazy-loading] Testing JIT"
11+
npm run test:ci
12+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13+
echo "[MeteorCLI - lazy-loading] Testing AOT"
14+
AOT=1 meteor build ./.meteor/build-aot
15+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
16+
echo "[MeteorCLI - lazy-loading] AOT w/ Rollup"
17+
AOT=1 ROLLUP=1 meteor build ./.meteor/build-aot-rollup
1818
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi

examples/MeteorCLI/run_tests.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
#!/bin/sh
2-
export NODE_OPTIONS=--max-old-space-size=4096
3-
export METEOR_PACKAGE_DIRS=../../../atmosphere-packages
4-
cd ./bare
5-
sh run_tests.sh
6-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7-
cd ../lazy-loading
8-
sh run_tests.sh
9-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10-
cd ../universal
11-
sh run_tests.sh
12-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13-
cd ../all-in-one
14-
sh run_tests.sh
1+
#!/bin/sh
2+
export NODE_OPTIONS=--max-old-space-size=4096
3+
export METEOR_PACKAGE_DIRS=../../../atmosphere-packages
4+
cd ./bare
5+
sh run_tests.sh
6+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7+
cd ../lazy-loading
8+
sh run_tests.sh
9+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10+
cd ../universal
11+
sh run_tests.sh
12+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13+
cd ../all-in-one
14+
sh run_tests.sh
1515
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#!/bin/sh
2-
echo "[MeteorCLI - universal] Resetting project"
3-
meteor reset
4-
echo "[MeteorCLI - universal] Installing npm dependencies"
5-
npm ci
6-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7-
echo "[MeteorCLI - universal] Installing meteor dependencies"
8-
meteor update --all-packages --allow-incompatible-update
9-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10-
echo "[MeteorCLI - universal] Testing JIT"
11-
npm run test:ci
12-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13-
echo "[MeteorCLI - universal] Testing AOT"
14-
AOT=1 meteor build ./.meteor/build-aot
15-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
16-
echo "[MeteorCLI - universal] AOT w/ Rollup"
17-
AOT=1 ROLLUP=1 meteor build ./.meteor/build-aot-rollup
1+
#!/bin/sh
2+
echo "[MeteorCLI - universal] Resetting project"
3+
meteor reset
4+
echo "[MeteorCLI - universal] Installing npm dependencies"
5+
npm ci
6+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7+
echo "[MeteorCLI - universal] Installing meteor dependencies"
8+
meteor update --all-packages --allow-incompatible-update
9+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10+
echo "[MeteorCLI - universal] Testing JIT"
11+
npm run test:ci
12+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13+
echo "[MeteorCLI - universal] Testing AOT"
14+
AOT=1 meteor build ./.meteor/build-aot
15+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
16+
echo "[MeteorCLI - universal] AOT w/ Rollup"
17+
AOT=1 ROLLUP=1 meteor build ./.meteor/build-aot-rollup
1818
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
#!/bin/sh
2-
npm ci
3-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
4-
npm run meteor-client:bundle
5-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
6-
npm run api:reset
7-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
8-
npm run test
9-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10-
#concurrently "npm run start" "npm run api" "sleep 180; npm run e2e" --kill-others --success first
11-
concurrently "npm run start" "sleep 30; npm run e2e" --kill-others --success first
1+
#!/bin/sh
2+
npm ci
3+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
4+
npm run meteor-client:bundle
5+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
6+
npm run api:reset
7+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
8+
npm run test
9+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10+
#concurrently "npm run start" "npm run api" "sleep 180; npm run e2e" --kill-others --success first
11+
concurrently "npm run start" "sleep 30; npm run e2e" --kill-others --success first
1212
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi

examples/angularjs/run_tests.sh

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
#!/bin/sh
2-
echo "[MeteorCLI - angularjs] Resetting project"
3-
meteor reset
4-
echo "[MeteorCLI - angularjs] Installing npm dependencies"
5-
npm ci
6-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7-
echo "[MeteorCLI - angularjs] Installing meteor dependencies"
8-
meteor update --all-packages --allow-incompatible-update
9-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10-
echo "[MeteorCLI - angularjs] Testing Dev"
11-
npm run test:ci
12-
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13-
echo "[MeteorCLI - angularjs] Testing Production w/ Rollup"
14-
ROLLUP=1 meteor build ./.meteor/build-rollup
1+
#!/bin/sh
2+
echo "[MeteorCLI - angularjs] Resetting project"
3+
meteor reset
4+
echo "[MeteorCLI - angularjs] Installing npm dependencies"
5+
npm ci
6+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
7+
echo "[MeteorCLI - angularjs] Installing meteor dependencies"
8+
meteor update --all-packages --allow-incompatible-update
9+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
10+
echo "[MeteorCLI - angularjs] Testing Dev"
11+
npm run test:ci
12+
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
13+
echo "[MeteorCLI - angularjs] Testing Production w/ Rollup"
14+
ROLLUP=1 meteor build ./.meteor/build-rollup
1515
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi

run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
2-
(cd examples/MeteorCLI && ./run_tests.sh)
2+
(cd examples/MeteorCLI && sh run_tests.sh)
33
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
4-
(cd examples/angularjs && ./run_tests.sh)
4+
(cd examples/angularjs && sh run_tests.sh)
55
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi
6-
(cd examples/angularcli-meteor && ./run_tests.sh)
6+
(cd examples/angularcli-meteor && sh run_tests.sh)
77
exit_code=$?; if [ ${exit_code} -gt 0 ]; then exit ${exit_code}; fi

0 commit comments

Comments
 (0)