Skip to content

bokuanlS2023/TEST_CICD

Repository files navigation

Continuous Integration [![CircleCI](https://circleci.com/gh/cmusv-fse/CI-CD.svg?style=svg&circle-token=27180ae211de7ce54b89ed89cb1736a7df12aa66)](https://circleci.com/gh/cmusv-fse/CI-CD) ============== Continuous Integration and Deployment Recitation Changelog ============== 1. Implementation of a bowling score card. 2. Reference for Unit Testing lab for FSE Fall 2015 at CMU-SV. 3. Updated for CircleCI Integration for FSE Spring 2018 at CMU-SV. 4. Updated for CI/CD recitation for FSE Spring 2019 at CMU-SV. 5. Updated for CI/CD recitation for FSE Fall 2019 at CMU-SV. 6. Change the testing framework from Mocha to Jest for FSE Fall 2020 at CMU-SV. 7. Add eslint and mongodb image for FSE Fall 2020 at CMU-SV. 8. Removed mongodb image, and changed cache to "package-lock.json" for FSE Spring 2021 at CMU-SV. 9. Removed legacy code-climate for FSE Fall 2021 at CMU-SV Install ============== Install needed tools: ``` npm install ``` Tests results ============== ``` npm run test ``` Coverage results ============== ``` npm run coverage ``` ![Coverage screenshot](./resources/coverage.png) CircleCI integration ============== 1. Link your account with CircleCI by following ["Getting Started with CircleCI"](https://circleci.com/docs/2.0/getting-started/). 1. After the account is linked, when you push changes to the repo CircleCI will run your tests and code coverage. 1. You can The coverage report is in `Artifacts > coverage/index.html` ### Artifacts > Coverage ![Coverage screenshot](./resources/Artifacts.png) Set up Render ============== 1. Follow the steps to create a Web Service on Render ["Free Web Service"](https://render.com/docs/free). 2. On Render. Go to your `Web Service -> Setting -> Build and Deploy`. Set Auto-Deploy to No and copy Deploy Hook for CircleCI config. ![Render Setting](./resources/Render_Setting.png) 3. Set up a request on CircleCI - only run after previous steps pass. Replace the url with your own Deploy Hook at the last command. Format: `curl “”` ![Deploy Hook](./resources/CircleCi_Deploy_Hook.png) # TEST_CICD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published