DEV Community

Cover image for Day 9 of #100DaysOfCode: engage CI for building and validation with Travis-CI
Jen-Hsuan Hsieh
Jen-Hsuan Hsieh

Posted on

Day 9 of #100DaysOfCode: engage CI for building and validation with Travis-CI

Introduction

Travis CI is the Leader continuous integration platform. It starts in 2011 in open source, move to paid and enterprise.

Travis-CI is Github based. Github will notify Travis CI when the developer push the code. Travis will pull code from Github and run test automatically.

Steps

1.Login to https://travis-ci.com/
2.Click Settings from the dashboard. It redirects to Github.
Alt Text

3.Select repositories from Repository access
Alt Text

4.Add .travis.yml in the root folder. This is the template for Python.

language: python
python:
  - 3.6
install:
  - pip install -r requirements.txt
  - npm install
  - npm build  
script:
  - npm test
Enter fullscreen mode Exit fullscreen mode


`
5.Travis-CI will build the repository when we push code to Github
Alt Text

Articles

There are some of my articles. Feel free to check if you like!

Top comments (0)