This repository was archived by the owner on Apr 4, 2025. It is now read-only.
File tree 3 files changed +12
-15
lines changed
3 files changed +12
-15
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ install:
17
17
- ./scripts/sauce_connect_setup.sh
18
18
- npm install -g npm
19
19
- npm install
20
- - npm install -g karma-cli
21
20
- ./npm-install.sh
22
21
- ./scripts/wait_for_browser_provider.sh
23
22
Original file line number Diff line number Diff line change 4
4
"description" : " run-time hinting for AngularJS applications" ,
5
5
"main" : " hint.js" ,
6
6
"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"
9
12
},
10
13
"repository" : {
11
14
"type" : " git" ,
Original file line number Diff line number Diff line change 2
2
SCRIPT_DIR=$( dirname $0 )
3
3
cd $SCRIPT_DIR /..
4
4
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
14
7
8
+ # Run unit tests
15
9
SAUCE_ACCESS_KEY=` echo $SAUCE_ACCESS_KEY | rev`
10
+ yarn test-unit -- --sauce
11
+
12
+ # Run e2e tests
13
+ yarn test-e2e
16
14
17
- # ./node_modules/.bin/protractor protractor.conf.js --travis &
18
- karma start karma.conf.js --sauce &
19
15
wait %2
20
- # wait %2 %3
You can’t perform that action at this time.
0 commit comments