Skip to content

Commit 20bfa98

Browse files
committed
adjust release script
1 parent c4da6c7 commit 20bfa98

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

build/karma.base.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ var webpackConfig = {
1919
__WEEX__: false,
2020
'process.env': {
2121
NODE_ENV: '"development"',
22-
TRANSITION_DURATION: process.env.SAUCE ? 200 : 50,
23-
TRANSITION_BUFFER: process.env.SAUCE ? 30 : 10
22+
TRANSITION_DURATION: process.env.SAUCE ? 500 : 50,
23+
TRANSITION_BUFFER: process.env.SAUCE ? 50 : 10
2424
}
2525
})
2626
],

build/release.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,17 @@ read -p "Releasing $VERSION - are you sure? (y/n) " -n 1 -r
1111
echo
1212
if [[ $REPLY =~ ^[Yy]$ ]]; then
1313
echo "Releasing $VERSION ..."
14-
export SAUCE_BUILD_ID=$VERSION:`date +"%s"`
1514

1615
npm run lint
1716
npm run flow
1817
npm run test:cover
1918
npm run test:e2e
2019
npm run test:ssr
21-
npm run test:sauce
20+
21+
if [[ -z $SKIP_SAUCE ]]; then
22+
export SAUCE_BUILD_ID=$VERSION:`date +"%s"`
23+
npm run test:sauce
24+
fi
2225

2326
# build
2427
VERSION=$VERSION npm run build

0 commit comments

Comments
 (0)