mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Add Node 10 to CI config and remove Node 6 (#4383)
* Add Node 10 to Travis config. Remove Node 6. * Add Node 10 to Appveyor config. Remove Node 6. * Remove node 9 from travis config. * Increase mocha timeout. * Update minimum Node version to 8. * Update yarn to latest on Travis. * Update old-node test to use Node 4. * Increase mocha timeout in kitchensink-eject tests. * Update yarn to latest on Appveyor.
This commit is contained in:
@@ -159,7 +159,7 @@ E2E_URL="http://localhost:3002" \
|
||||
CI=true NODE_PATH=src \
|
||||
NODE_ENV=development \
|
||||
BABEL_ENV=test \
|
||||
node_modules/.bin/mocha --compilers js:@babel/register --require @babel/polyfill integration/*.test.js
|
||||
node_modules/.bin/mocha --timeout 30000 --compilers js:@babel/register --require @babel/polyfill integration/*.test.js
|
||||
|
||||
# Test "production" environment
|
||||
E2E_FILE=./build/index.html \
|
||||
@@ -168,7 +168,7 @@ E2E_FILE=./build/index.html \
|
||||
BABEL_ENV=test \
|
||||
NODE_PATH=src \
|
||||
PUBLIC_URL=http://www.example.org/spa/ \
|
||||
node_modules/.bin/mocha --compilers js:@babel/register --require @babel/polyfill integration/*.test.js
|
||||
node_modules/.bin/mocha --timeout 30000 --compilers js:@babel/register --require @babel/polyfill integration/*.test.js
|
||||
|
||||
# Cleanup
|
||||
cleanup
|
||||
|
||||
@@ -151,7 +151,7 @@ E2E_URL="http://localhost:3001" \
|
||||
CI=true NODE_PATH=src \
|
||||
NODE_ENV=development \
|
||||
BABEL_ENV=test \
|
||||
node_modules/.bin/mocha --compilers js:@babel/register --require @babel/polyfill integration/*.test.js
|
||||
node_modules/.bin/mocha --timeout 30000 --compilers js:@babel/register --require @babel/polyfill integration/*.test.js
|
||||
# Test "production" environment
|
||||
E2E_FILE=./build/index.html \
|
||||
CI=true \
|
||||
@@ -159,7 +159,7 @@ E2E_FILE=./build/index.html \
|
||||
NODE_ENV=production \
|
||||
BABEL_ENV=test \
|
||||
PUBLIC_URL=http://www.example.org/spa/ \
|
||||
node_modules/.bin/mocha --compilers js:@babel/register --require @babel/polyfill integration/*.test.js
|
||||
node_modules/.bin/mocha --timeout 30000 --compilers js:@babel/register --require @babel/polyfill integration/*.test.js
|
||||
|
||||
# Cleanup
|
||||
cleanup
|
||||
|
||||
@@ -8,7 +8,7 @@ function print_help {
|
||||
echo "Usage: ${0} [OPTIONS]"
|
||||
echo ""
|
||||
echo "OPTIONS:"
|
||||
echo " --node-version <version> the node version to use while testing [6]"
|
||||
echo " --node-version <version> the node version to use while testing [8]"
|
||||
echo " --git-branch <branch> the git branch to checkout for testing [the current one]"
|
||||
echo " --test-suite <suite> which test suite to use ('simple', installs', 'kitchensink', 'all') ['all']"
|
||||
echo " --interactive gain a bash shell after the test run"
|
||||
@@ -18,7 +18,7 @@ function print_help {
|
||||
|
||||
cd $(dirname $0)
|
||||
|
||||
node_version=6
|
||||
node_version=8
|
||||
current_git_branch=`git rev-parse --abbrev-ref HEAD`
|
||||
git_branch=${current_git_branch}
|
||||
test_suite=all
|
||||
|
||||
Reference in New Issue
Block a user