diff --git a/sasjs-tests/README.md b/sasjs-tests/README.md index 9ae629f..6296cfe 100644 --- a/sasjs-tests/README.md +++ b/sasjs-tests/README.md @@ -41,6 +41,19 @@ So you can run the script like so: SSH_ACCOUNT=me@my-sas-server.com DEPLOY_PATH=/var/www/html/my-folder/sasjs-tests npm run deploy ``` +If you are on `WINDOWS`, you will first need to install one dependency: +```bash +npm i -g copyfiles +``` +and then run to build: +```bash +npm run update:adapter && npm run build +``` +when it finishes run to deploy: +```bash +scp -rp ./build/* me@my-sas-server.com:/var/www/html/my-folder/sasjs-tests +``` + If you'd like to deploy just `sasjs-tests` without changing the adapter version, you can use the `deploy:tests` script, while also setting the same environment variables as above. ## 3. Creating the required SAS services diff --git a/sasjs-tests/package.json b/sasjs-tests/package.json index 737ab7b..64d2331 100644 --- a/sasjs-tests/package.json +++ b/sasjs-tests/package.json @@ -23,7 +23,8 @@ "test": "react-scripts test", "eject": "react-scripts eject", "update:adapter": "cd .. && npm run package:lib && cd sasjs-tests && npm i ../build/sasjs-adapter-5.0.0.tgz", - "deploy:tests": "rsync -avhe ssh ./build/* --delete $SSH_ACCOUNT:$DEPLOY_PATH", + "deploy:tests": "rsync -avhe ssh ./build/* --delete $SSH_ACCOUNT:$DEPLOY_PATH || npm run deploy:tests-win", + "deploy:tests-win": "scp %DEPLOY_PATH% ./build/*", "deploy": "npm run update:adapter && npm run build && npm run deploy:tests" }, "eslintConfig": {