Skip to content
/ learning-travis Public template

Learning Travis CI for test automation (and TDD down the road).

Notifications You must be signed in to change notification settings

hchiam/learning-travis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning Travis CI

Just one of the things I'm learning. https://github.com/hchiam/learning

This is a minimal example for getting Travis CI to work on a GitHub repo. I chose the Tape framework for testing JavaScript. I like the minimal setup, especially for my learning purposes. You might also like an example setup to run Selenium on Travis CI.

Build Status

You can see the automated test run data here: https://travis-ci.org/hchiam/learning-travis

To run a test on your own computer:

(Uses code inspired by my Tape repo.)

  1. Install dependencies:
mkdir node_modules
npm install tape --save-dev
  1. Run test using Tape:
node test.js

Make sure to enable the specific GitHub repo in Travis CI

  1. https://travis-ci.com/account/repositories (was: https://travis-ci.org/account/repositories)
  2. Search for the relevant GitHub repo
  3. Hit the sliding button so it moves to the right / turns green

Example setup to run Selenium on Travis CI

https://github.com/hchiam/selenium-travis

Used chrome extension Selenium IDE to create a .side file that gets run in Travis CI.

Example repo that tests a desktop app on Travis CI

https://github.com/hchiam/anonymous-input

Built with Electron. Tested by using spectron and mocha instead of Selenium IDE.

Example repo with (with yarn and surge and cypress)

https://github.com/hchiam/slides

Example repo with Lighthouse CI

https://github.com/hchiam/learning-lighthouse-ci

Integrating surge with Travis CI

https://surge.sh/help/integrating-with-travis-ci

Integrating cypress with Travis CI

https://docs.cypress.io/guides/guides/continuous-integration.html#Travis

I just needed this 1 thing: (Apparently I didn't need to keep libgconf-2-4 nor the ~/.cache.)

before_script:
  - cypress install # to get Cypress working

About

Learning Travis CI for test automation (and TDD down the road).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published