Awesome
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.
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.)
- Install dependencies:
mkdir node_modules
npm install tape --save-dev
- Run test using Tape:
node test.js
Make sure to enable the specific GitHub repo in Travis CI
- https://travis-ci.com/account/repositories (was: https://travis-ci.org/account/repositories)
- Search for the relevant GitHub repo
- 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