Skip to content

Commit

Permalink
Add circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Klingler committed Jun 8, 2018
1 parent 6924cdd commit cdd96ed
Show file tree
Hide file tree
Showing 12 changed files with 55 additions and 146 deletions.
53 changes: 53 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
version: 2.0
jobs:
build:

docker:
- image: circleci/php:7.1.9-browsers
working_directory: ~/repo
steps:
- checkout
- run:
name: Setup dependencies
command: |
sudo composer self-update
composer install -n --prefer-dist
- run:
name: Setup Code Climate test-reporter
command: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
- run:
name: Run tests
command: |
sudo docker-php-ext-enable xdebug
./cc-test-reporter before-build
sudo vendor/bin/phpunit --coverage-clover clover.xml
./cc-test-reporter after-build --coverage-input-type clover --exit-code $?
version: 2
jobs:
build:
environment:
CC_TEST_REPORTER_ID: b291228f0a903ae688099b7d801a631cf3a0929d6c0b7792010c52192ee5d50f
docker:
- image: circleci/node:7.10
working_directory: ~/repo

steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v1-dependencies-

- run: npm install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}

- run: npm run test

# publish to npm
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
coverage
coverage
dist
4 changes: 0 additions & 4 deletions dist/client.d.ts

This file was deleted.

32 changes: 0 additions & 32 deletions dist/client.js

This file was deleted.

3 changes: 0 additions & 3 deletions dist/server.d.ts

This file was deleted.

21 changes: 0 additions & 21 deletions dist/server.js

This file was deleted.

6 changes: 0 additions & 6 deletions dist/snabbdom-typestyle.d.ts

This file was deleted.

9 changes: 0 additions & 9 deletions dist/snabbdom-typestyle.js

This file was deleted.

6 changes: 0 additions & 6 deletions dist/types.d.ts

This file was deleted.

2 changes: 0 additions & 2 deletions dist/types.js

This file was deleted.

4 changes: 0 additions & 4 deletions dist/utils.d.ts

This file was deleted.

58 changes: 0 additions & 58 deletions dist/utils.js

This file was deleted.

0 comments on commit cdd96ed

Please sign in to comment.