Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

Commit f85f600

Browse files
committedMar 30, 2017
feat(package.json): more scripts (no karma-cli)
1 parent aa48991 commit f85f600

File tree

3 files changed

+12
-15
lines changed

3 files changed

+12
-15
lines changed
 

‎.travis.yml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ install:
1717
- ./scripts/sauce_connect_setup.sh
1818
- npm install -g npm
1919
- npm install
20-
- npm install -g karma-cli
2120
- ./npm-install.sh
2221
- ./scripts/wait_for_browser_provider.sh
2322

‎package.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
"description": "run-time hinting for AngularJS applications",
55
"main": "hint.js",
66
"scripts": {
7-
"test": "gulp",
8-
"build": "gulp build"
7+
"gulp": "gulp",
8+
"build": "gulp build",
9+
"serve": "gulp serve",
10+
"test-unit": "karma start",
11+
"test-e2e": "gulp test"
912
},
1013
"repository": {
1114
"type": "git",

‎scripts/test_on_sauce.sh

+7-12
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22
SCRIPT_DIR=$(dirname $0)
33
cd $SCRIPT_DIR/..
44

5-
function killServer {
6-
kill $serverPid
7-
}
8-
9-
./node_modules/.bin/gulp build
10-
./node_modules/.bin/gulp serve &
11-
serverPid=$!
12-
13-
trap killServer EXIT
5+
# Build
6+
yarn build
147

8+
# Run unit tests
159
SAUCE_ACCESS_KEY=`echo $SAUCE_ACCESS_KEY | rev`
10+
yarn test-unit -- --sauce
11+
12+
# Run e2e tests
13+
yarn test-e2e
1614

17-
#./node_modules/.bin/protractor protractor.conf.js --travis &
18-
karma start karma.conf.js --sauce &
1915
wait %2
20-
#wait %2 %3

0 commit comments

Comments
 (0)
This repository has been archived.