Skip to content

Commit

Permalink
Switch to CircleCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Apr 15, 2019
1 parent 80dfee9 commit d622223
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 22 deletions.
78 changes: 78 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
version: 2.1

commands:
install:
parameters:
install-commands:
description: "Steps that will be executed before the tests"
type: steps
default: []
steps:
- checkout
- restore_cache:
keys:
- "{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ checksum \".circleci/config.yml\" }}-{{ checksum \"package-lock.json\" }}"
- "{{ .Environment.CIRCLE_JOB }}-{{ checksum \".circleci/config.yml\" }}-{{ checksum \"package-lock.json\" }}"
name: Restoring npm cache
- run: node --version
- run: npm --version
- run: java -version
- run: npm ci
- save_cache:
key: "{{ .Environment.CIRCLE_JOB }}-{{ .Branch }}-{{ checksum \".circleci/config.yml\" }}-{{ checksum \"package-lock.json\" }}"
name: Save npm modules
paths:
- /home/circleci/.npm

run-tests:
parameters:
test-commands:
description: "Steps that will be executed after the repo is cloned and dependencies are installed, but before tests are run"
type: steps
default: []
steps:
- steps: << parameters.test-commands >>

jobs:
node-8:
docker:
- image: circleci/node:8-stretch-browsers
steps:
- install
- run-tests:
test-commands:
- run:
name: Run tests
command: npm test

node-10:
docker:
- image: circleci/node:10-stretch-browsers
steps:
- install
- run-tests:
test-commands:
- run:
name: Run tests
command: npm test
- run:
name: Run BrowserStack tests
command: |
if [[ -n "$BROWSER_STACK_ACCESS_KEY" && ! `git log --format=%B --no-merges -n 1 | grep '\[skip browser\]'` ]]; then
npm run js-test-cloud;
fi
- run:
name: Run docs links checking
command: npm run linkinator
- run:
name: Run coveralls
command: npm run coveralls
when: on_success

workflows:
version: 2
test:
jobs:
- node-8
- node-10:
context: BrowserStack
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Read the [Getting started page](https://getbootstrap.com/docs/4.3/getting-starte
## Status

[![Slack](https://bootstrap-slack.herokuapp.com/badge.svg)](https://bootstrap-slack.herokuapp.com/)
[![Build Status](https://img.shields.io/travis/twbs/bootstrap/master.svg)](https://travis-ci.org/twbs/bootstrap)
[![Build Status](https://img.shields.io/circleci/project/gh/twbs/bootstrap/master.svg)](https://circleci.com/gh/twbs/bootstrap)
[![npm version](https://img.shields.io/npm/v/bootstrap.svg)](https://www.npmjs.com/package/bootstrap)
[![Gem version](https://img.shields.io/gem/v/bootstrap.svg)](https://rubygems.org/gems/bootstrap)
[![Meteor Atmosphere](https://img.shields.io/badge/meteor-twbs%3Abootstrap-blue.svg)](https://atmospherejs.com/twbs/bootstrap)
Expand Down

0 comments on commit d622223

Please sign in to comment.