Skip to content

Commit

Permalink
Tools: Removed no longer needed double-dash and fixed CI
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Dec 21, 2021
1 parent 106ce4b commit e08359f
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/scripts/run_ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ if [[ $GIT_TAG_NAME = v* ]]; then
elif [[ $GIT_TAG_NAME = server-v* ]] && [[ $IS_LINUX = 1 ]]; then
echo "Step: Building Docker Image..."
cd "$ROOT_DIR"
yarn run buildServerDocker -- --tag-name $GIT_TAG_NAME --push-images
yarn run buildServerDocker --tag-name $GIT_TAG_NAME --push-images
else
echo "Step: Building but *not* publishing desktop application..."
USE_HARD_LINKS=false yarn run dist -- --publish=never
USE_HARD_LINKS=false yarn run dist --publish=never
fi
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Running `yarn run tsc` would have the same effect, but without watching.

You can specify additional parameters when running the desktop or CLI application. To do so, add `--` to the `yarn start` command, followed by your flags. For example:

yarn start -- --debug
yarn start --debug

## TypeScript

Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ yarn test
To run just one particular file:

```sh
yarn test -- --filter=markdownUtils # Don't add the .js extension
yarn test --filter=markdownUtils # Don't add the .js extension
```

To filter tests. For example, to run all the test units that contain "should handle conflict" in their description:

```sh
yarn test -- --filter="should handle conflict"
yarn test --filter="should handle conflict"
```

## About abandoned pull requests
Expand Down
2 changes: 1 addition & 1 deletion DEPLOY.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The desktop application is built for Windows, macOS and Linux via continuous int

The app is built and upload to GitHub using:

yarn run releaseAndroid -- --type=prerelease
yarn run releaseAndroid --type=prerelease

The "type" parameter can be either "release" or "prerelease"

Expand Down
2 changes: 1 addition & 1 deletion packages/app-cli/createUsers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ while [ "$NUM" -lt 400 ]; do
echo "config sync.10.password hunter1hunter2hunter3" >> "$CMD_FILE"
echo "sync" >> "$CMD_FILE"

yarn start -- --profile "$PROFILE_DIR" batch "$CMD_FILE"
yarn start --profile "$PROFILE_DIR" batch "$CMD_FILE"
done
8 changes: 4 additions & 4 deletions packages/app-cli/tests/support/serverPerformances/testPerf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ do
done

cd "$ROOT_DIR/packages/app-cli"
yarn start -- --profile "$PROFILE_DIR" batch "$CMD_FILE"
yarn start -- --profile "$PROFILE_DIR" import ~/Desktop/Joplin_17_06_2021.jex
# yarn start -- --profile "$PROFILE_DIR" import ~/Desktop/Tout_18_06_2021.jex
yarn start -- --profile "$PROFILE_DIR" sync --use-lock 1
yarn start --profile "$PROFILE_DIR" batch "$CMD_FILE"
yarn start --profile "$PROFILE_DIR" import ~/Desktop/Joplin_17_06_2021.jex
# yarn start --profile "$PROFILE_DIR" import ~/Desktop/Tout_18_06_2021.jex
yarn start --profile "$PROFILE_DIR" sync --use-lock 1
4 changes: 2 additions & 2 deletions packages/app-desktop/runForTesting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ do
done

cd "$ROOT_DIR/packages/app-cli"
yarn start -- --profile "$PROFILE_DIR" batch "$CMD_FILE"
yarn start --profile "$PROFILE_DIR" batch "$CMD_FILE"

if [[ $COMMANDS != "" ]]; then
exit 0
fi

cd "$ROOT_DIR/packages/app-desktop"
yarn start -- --profile "$PROFILE_DIR"
yarn start --profile "$PROFILE_DIR"
2 changes: 1 addition & 1 deletion packages/app-desktop/testPluginDemo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
PLUGIN_PATH="$SCRIPT_DIR/../app-cli/tests/support/plugins/toc"
yarn i --prefix="$PLUGIN_PATH" && yarn start -- --dev-plugins "$PLUGIN_PATH"
yarn i --prefix="$PLUGIN_PATH" && yarn start --dev-plugins "$PLUGIN_PATH"
2 changes: 1 addition & 1 deletion packages/lib/testing/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ async function loadEncryptionMasterKey(id: number = null, useExisting = false) {

function mustRunInBand() {
if (!process.argv.includes('--runInBand')) {
throw new Error('Tests must be run sequentially for this sync target, with the --runInBand arg. eg `npm test -- --runInBand`');
throw new Error('Tests must be run sequentially for this sync target, with the --runInBand arg. eg `yarn test --runInBand`');
}
}

Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"devDropTables": "node dist/app.js --env dev --drop-tables",
"devDropDb": "node dist/app.js --env dev --drop-db",
"start": "node dist/app.js",
"generateTypes": "rm -f db-buildTypes.sqlite && yarn run start -- --env buildTypes migrate latest && node dist/tools/generateTypes.js && mv db-buildTypes.sqlite schema.sqlite",
"generateTypes": "rm -f db-buildTypes.sqlite && yarn run start --env buildTypes migrate latest && node dist/tools/generateTypes.js && mv db-buildTypes.sqlite schema.sqlite",
"tsc": "tsc --project tsconfig.json",
"test": "jest --verbose=false",
"test-ci": "yarn test",
Expand Down

0 comments on commit e08359f

Please sign in to comment.