what do you expect to gain by introducing CI/CD? A...
# dev-ops
s
what do you expect to gain by introducing CI/CD? Are other parts of your company doing CI/CD?
r
No one is using it, we are a small team (less than 10 devs). Its to have a uniform code formatting and catching code errors using a linter. I don't think I can convince the team to move to Typescript. So I am thinking of CI/CD as a compromise.
s
Do you write unit tests now?
In any case, Jenkins is an open source tool I've used for CI/CD, and I think most of the cloud platforms have some native support for it (e.g. in Azure DevOps you build pilelines). Using your tool of choice (or whatever your company sticks you with) just configure it to compile and/or do your linter, run unit tests, if all pass, accept the integration.
if not, barf and let the developer fix things and try again.
You might consider trying TypeScript on your JavaScript to do whatever magic it can on your JS code. This may combine with or be a lightweight alternative to a traditional jslint setup.
I haven't used it (since I write source in TS) but supposedly TS can typecheck javascript files to some extent (i.e. don't need to write TypeScript code to get some value from the TypeScript transpiler)
r
Thanks for the suggestions, I will look into it.
b
@rustyshackles is there a git service you already use that might provide CI/CD pipelines? Github, Gitlab, or Bitbucket? I have found these services relatively easy to create SDF pipelines in the past too.
r
We are using Gitlab, just need to figure out where to start I guess
s
I recommend you start small and simple
b
@rustyshackles here's the pipelines and flow I'm currently using with gitlab. Happy to answer any questions.
👍 1