File tree 2 files changed +15
-3
lines changed
2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change 39
39
},
40
40
"scripts" : {
41
41
"lint" : " eslint . && node ./scripts/lint-readme.js" ,
42
- "test" : " test/support/gencert.sh && mocha --require test/support/env --check-leaks --bail --no-exit --reporter spec test/" ,
42
+ "test" : " bash -c ' test/support/gencert.sh' && mocha --require test/support/env --check-leaks --bail --no-exit --reporter spec test/" ,
43
43
"test-ci" : " nyc --reporter=lcov --reporter=text npm test" ,
44
44
"test-cov" : " nyc npm test" ,
45
45
"version" : " node scripts/version-history.js && git add HISTORY.md"
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
- set -ex
2
+ set -e
3
+
4
+ # Detect OS
5
+ OS=" $( uname -s) "
6
+
7
+ # Define file paths
8
+ KEY_PATH=" ./test/fixtures/server.key"
9
+ CERT_PATH=" ./test/fixtures/server.crt"
10
+ SUBJ=" /C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"
11
+
12
+ if [[ " $OS " == MINGW* || " $OS " == MSYS* ]]; then
13
+ SUBJ=/" /C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local"
14
+ fi
3
15
4
16
openssl req -x509 -nodes -newkey rsa:2048 -keyout ./test/fixtures/server.key -out ./test/fixtures/server.crt -days 3650 \
5
- -subj " /C=US/ST=Illinois/L=Chicago/O=node-express-session/CN=express-session.local "
17
+ -subj " $SUBJ "
You can’t perform that action at this time.
0 commit comments