diff --git a/.travis.yml b/.travis.yml index e6c0ec47..ba9b137a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,17 +3,26 @@ language: node_js os: linux matrix: - include: - - node_js: '8' - - node_js: '10' + include: + - node_js: '8' + - node_js: '10' sudo: false install: - - npm install - +- npm install script: - npm run test:ci after_success: - - cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage +- cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage + +deploy: + provider: npm + email: $NPM_EMAIL_ACCOUNT + api_key: + secure: Iu5Q2uuiF+jRWkNRtX77YElMwyEopzKD+iHQQkT7HheH12AwDAW/PZiwLRhBTif8kvHmIIwPhjey6i7QwmJFUmpb433299WF+tinRhy5mBFntdaNmgS2Wvv/hOFJza2XdOeIsKA+s+zPAGArfLonmvQX5QKVmJI7/W+hyqJT0FjtTMqxPyJ00ENuDeZdUEcsaoDAwu1XTA6bj5ILnguR+smeGoZscpp8nwTv27fA+GWLFGf08pPAyuHSwc1/lRxSbLlw/f0ZqnCclGU+SF2EV4/9+xxcPWqtJdJfURR/LaOkg3Q5o4aILRjNJNCbpRkrc5lEcPEvBPLrI6e7F9ssg08aHniaMvdD5B9TsgGqV6sxZX/KvMIHWfzBRLuCzY2bPE8Wbw+ZI/yi9+89NZdRikAMyWocvg4tx1OsQRcrRltsXqQrZyw45IR5oSv0kLx54xrslXu8jjP08jQEpnBncJp883DX6DmO42TRP4QYHsQ8BB5hHQ2qmVoKMydkLy0Kdvq7e+9v/pZHEMsR/HOwz1S5xYsSeqwqoq4u/H+hPFWu3GVJXbsVLHZuaDU3fBRMtJOcjujPszrvN/cNt2JryTT1EYPJotmpURqu/n9vPLMzoi1wIKPrZiAcEzh8MLlM93MyG/yuPeHZOvMuwCVtOXd3KKH8sEJvbTVUtKIvQXw= + on: + tags: true + repo: serverless/serverless-azure-functions + branch: master diff --git a/README.md b/README.md index 1535a58a..0cfb1515 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,35 @@ Please create issues in this repo for any problems or questions you find. Before We're still in the process of getting everying running 100%, but please refer to the [Serverless contributing guidlines](https://github.com/serverless/serverless/blob/master/CONTRIBUTING.md) for information on how to contribute and code of conduct. +#### Local dev + +1. Clone this repository to your local machine +2. Navigate to the cloned folder +3. Run `npm install` +4. Run `npm run-script build` +5. Navigate to a folder where you created a new Serverless project, run `npm install`, and then run `npm link {path to serverless-azure-functions folder}`. Running `npm install` after the link command may override the link. +6. The npm modules should now contain your local version of this plugin. + +#### Signing commits + +All commits in your Pull Request will need to be signed. When looking at the commits in the pull request, you will see a green 'verified' icon next to your commit. Commit signature verification is discussed [here](https://help.github.com/en/articles/about-commit-signature-verification) + +Follow the directions [here](https://help.github.com/en/articles/signing-commits) to configure commit signing. + +If any of your commits are not signed, your pull request will not be able to be merged into the base branch. You can fix this by squashing any unsigned commits into signed commits using an interactive rebase, and force pushing your new commit history. More detail [here](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History) + +When using Windows you may also encounter an error when trying to sign a commit, stating that a security key could not be found. Ensure that you have set the path the gpg in the git config: `git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"` + +#### Signing commits + +All commits in your Pull Request will need to be signed. When looking at the commits in the pull request, you will see a green 'verified' icon next to your commit. Commit signature verification is discussed [here](https://help.github.com/en/articles/about-commit-signature-verification) + +Follow the directions [here](https://help.github.com/en/articles/signing-commits) to configure commit signing. + +If any of your commits are not signed, your pull request will not be able to be merged into the base branch. You can fix this by squashing any unsigned commits into signed commits using an interactive rebase, and force pushing your new commit history. More detail [here](https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History) + +When using Windows you may also encounter an error when trying to sign a commit, stating that a security key could not be found. Ensure that you have set the path the gpg in the git config: `git config --global gpg.program "C:\Program Files (x86)\GnuPG\bin\gpg.exe"` + ## License [MIT](LICENSE) diff --git a/package.json b/package.json index 47c7dba8..c066d170 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "test": "jest", "test:ci": "npm run test -- --ci", "test:coverage": "npm run test -- --coverage", - "prebuild": "rm lib/ -rf", + "prebuild": "shx rm -rf lib/ ", "build": "tsc" }, "repository": { @@ -61,6 +61,7 @@ "jest-cli": "^24.8.0", "mock-fs": "^4.10.0", "serverless": "^1.44.1", + "shx": "^0.3.2", "typescript": "^3.4.5" }, "optionalDependencies": { @@ -70,4 +71,4 @@ "engines": { "node": ">= 6.5.0" } -} \ No newline at end of file +}