Skip to content

Commit

Permalink
Add basic travis CI example (#118)
Browse files Browse the repository at this point in the history
* add basic Travis CI config file

* sort CIs by name

* put CI names into the first column
  • Loading branch information
bahmutov authored Sep 13, 2018
1 parent e158b50 commit 92cee80
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_js:
- 10.8

cache:
# cache both npm modules and Cypress binary
directories:
- ~/.npm
- ~/.cache
Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ To see the kitchen sink application, visit [example.cypress.io](https://example.

## CI status

Build status | CI | basic config file | full parallel config
CI | Build status | basic config file | full parallel config
:--- | :--- | :--- | :---
[![Circle CI](https://circleci.com/gh/cypress-io/cypress-example-kitchensink.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress-example-kitchensink) | Circle | [basic/circle.yml](basic/circle.yml) | [circle.yml](circle.yml)
[![Travis CI](https://travis-ci.org/cypress-io/cypress-example-kitchensink.svg?branch=master)](https://travis-ci.org/cypress-io/cypress-example-kitchensink) | Travis | | [.travis.yml](.travis.yml)
[![Build status](https://badge.buildkite.com/d1bd1f093d97de34475da7d545c80eb2be9749eefe1c7133f0.svg)](https://buildkite.com/cypress-io/cypress-example-kitchensink) | Buildkite | [.buildkite/pipeline.yml](.buildkite/pipeline.yml)
[![Windows build status](https://ci.appveyor.com/api/projects/status/bo4x59pha1eb18de?svg=true)](https://ci.appveyor.com/project/cypress-io/cypress-example-kitchensink) | AppVeyor | [appveyor.yml](appveyor.yml)
[![pipeline status](https://gitlab.com/cypress-io/cypress-example-kitchensink/badges/master/pipeline.svg)](https://gitlab.com/cypress-io/cypress-example-kitchensink/commits/master) | GitLab | | [.gitlab-ci.yml](.gitlab-ci.yml)
[ ![Codeship Status for cypress-io/cypress-example-kitchensink](https://app.codeship.com/projects/8d6a20c0-b70e-0133-41c6-56e5cd60fbd0/status?branch=master)](https://app.codeship.com/projects/134609) | Codeship Basic
[![Run Status](https://api.shippable.com/projects/56c38fdc1895ca4474743010/badge?branch=master)](https://app.shippable.com/github/cypress-io/cypress-example-kitchensink) | Shippable | [shippable.yml](shippable.yml)
--- | Jenkins | [basic/Jenkinsfile](basic/Jenkinsfile) | [Jenkinsfile](Jenkinsfile)
[![Build Status](https://semaphoreci.com/api/v1/jennifer-mann/cypress-example-kitchensink/branches/master/badge.svg)](https://semaphoreci.com/jennifer-mann/cypress-example-kitchensink) | Semaphore
AppVeyor | [![AppVeyor CI](https://ci.appveyor.com/api/projects/status/bo4x59pha1eb18de?svg=true)](https://ci.appveyor.com/project/cypress-io/cypress-example-kitchensink) | [appveyor.yml](appveyor.yml)
Buildkite | [![Buildkite CI](https://badge.buildkite.com/d1bd1f093d97de34475da7d545c80eb2be9749eefe1c7133f0.svg)](https://buildkite.com/cypress-io/cypress-example-kitchensink) | [.buildkite/pipeline.yml](.buildkite/pipeline.yml)
Circle | [![Circle CI](https://circleci.com/gh/cypress-io/cypress-example-kitchensink.svg?style=svg)](https://circleci.com/gh/cypress-io/cypress-example-kitchensink) | [basic/circle.yml](basic/circle.yml) | [circle.yml](circle.yml)
Codeship Basic | [ ![Codeship Basic CI](https://app.codeship.com/projects/8d6a20c0-b70e-0133-41c6-56e5cd60fbd0/status?branch=master)](https://app.codeship.com/projects/134609)
GitLab | [![GitLab CI](https://gitlab.com/cypress-io/cypress-example-kitchensink/badges/master/pipeline.svg)](https://gitlab.com/cypress-io/cypress-example-kitchensink/commits/master) | | [.gitlab-ci.yml](.gitlab-ci.yml)
Jenkins | | [basic/Jenkinsfile](basic/Jenkinsfile) | [Jenkinsfile](Jenkinsfile)
Semaphore | [![Semaphore CI](https://semaphoreci.com/api/v1/jennifer-mann/cypress-example-kitchensink/branches/master/badge.svg)](https://semaphoreci.com/jennifer-mann/cypress-example-kitchensink)
Shippable | [![Shippable CI](https://api.shippable.com/projects/56c38fdc1895ca4474743010/badge?branch=master)](https://app.shippable.com/github/cypress-io/cypress-example-kitchensink) | [shippable.yml](shippable.yml)
Travis | [![Travis CI](https://travis-ci.org/cypress-io/cypress-example-kitchensink.svg?branch=master)](https://travis-ci.org/cypress-io/cypress-example-kitchensink) | [basic/.travis.yml](basic/.travis.yml) | [.travis.yml](.travis.yml)

You can find all CI results recorded on the [![Cypress Dashboard](https://img.shields.io/badge/cypress-dashboard-brightgreen.svg)](https://dashboard.cypress.io/#/projects/4b7344/runs)

Expand Down
25 changes: 25 additions & 0 deletions basic/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: node_js

node_js:
# Node 10.3+ includes npm@6 which has good "npm ci" command
- 10.8

cache:
# cache both npm modules and Cypress binary
directories:
- ~/.npm
- ~/.cache
# install dependencies and check that Cypress can run
override:
- npm ci
- npm run cy:verify

script:
# start server in the background
- npm start -- --silent &
# run all Cypress tests and record on the dashboard
- npm run cy:run -- --record
# after all tests finish running we need
# to kill all background jobs (like "npm start &")
# this avoids flake in Travis jobs
- kill $(jobs -p) || true
1 change: 1 addition & 0 deletions basic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ CI | basic config file
:--- | :---
Circle | [circle.yml](circle.yml)
Jenkins | [Jenkinsfile](Jenkinsfile)
Travis | [.travis.yml](.travis.yml)

0 comments on commit 92cee80

Please sign in to comment.