mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-20 04:05:52 +00:00
Update scripts/ci.sh to use yarn
This commit is contained in:
@@ -8,14 +8,14 @@ function checkEOL {
|
|||||||
}
|
}
|
||||||
|
|
||||||
typecheck() {
|
typecheck() {
|
||||||
npm install -g flow-bin
|
yarn install -g flow-bin
|
||||||
flow --version
|
flow --version
|
||||||
npm run typecheck
|
yarn run typecheck
|
||||||
}
|
}
|
||||||
|
|
||||||
lint() {
|
lint() {
|
||||||
echo "eslint $(node_modules/.bin/eslint --version)"
|
echo "eslint $(node_modules/.bin/eslint --version)"
|
||||||
npm list babel-eslint
|
yarn list babel-eslint
|
||||||
REPO_URL="https://raw.githubusercontent.com/ripple/javascript-style-guide"
|
REPO_URL="https://raw.githubusercontent.com/ripple/javascript-style-guide"
|
||||||
curl "$REPO_URL/es6/eslintrc" > ./eslintrc
|
curl "$REPO_URL/es6/eslintrc" > ./eslintrc
|
||||||
echo "parser: babel-eslint" >> ./eslintrc
|
echo "parser: babel-eslint" >> ./eslintrc
|
||||||
@@ -25,8 +25,8 @@ lint() {
|
|||||||
unittest() {
|
unittest() {
|
||||||
# test "src"
|
# test "src"
|
||||||
mocha test --reporter mocha-junit-reporter --reporter-options mochaFile=$CIRCLE_TEST_REPORTS/test-results.xml
|
mocha test --reporter mocha-junit-reporter --reporter-options mochaFile=$CIRCLE_TEST_REPORTS/test-results.xml
|
||||||
npm test --coverage
|
yarn test --coverage
|
||||||
npm run coveralls
|
yarn run coveralls
|
||||||
|
|
||||||
# test compiled version in "dist/npm"
|
# test compiled version in "dist/npm"
|
||||||
$(npm bin)/babel -D --optional runtime --ignore "**/node_modules/**" -d test-compiled/ test/
|
$(npm bin)/babel -D --optional runtime --ignore "**/node_modules/**" -d test-compiled/ test/
|
||||||
@@ -46,7 +46,7 @@ unittest() {
|
|||||||
|
|
||||||
#echo "Running tests in SauceLabs"
|
#echo "Running tests in SauceLabs"
|
||||||
#http-server &
|
#http-server &
|
||||||
#npm run sauce
|
#yarn run sauce
|
||||||
|
|
||||||
#pkill -f mocked-server.js
|
#pkill -f mocked-server.js
|
||||||
#pkill -f http-server
|
#pkill -f http-server
|
||||||
@@ -65,7 +65,7 @@ integrationtest() {
|
|||||||
|
|
||||||
doctest() {
|
doctest() {
|
||||||
mv docs/index.md docs/index.md.save
|
mv docs/index.md docs/index.md.save
|
||||||
npm run docgen
|
yarn run docgen
|
||||||
mv docs/index.md docs/index.md.test
|
mv docs/index.md docs/index.md.test
|
||||||
mv docs/index.md.save docs/index.md
|
mv docs/index.md.save docs/index.md
|
||||||
cmp docs/index.md docs/index.md.test
|
cmp docs/index.md docs/index.md.test
|
||||||
|
|||||||
Reference in New Issue
Block a user