Skip to content

Commit

Permalink
ci(circleci): use circle ci
Browse files Browse the repository at this point in the history
use circle ci
remove travis
  • Loading branch information
MatthewMi11er committed Apr 3, 2018
1 parent af487f8 commit 9264c4f
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 35 deletions.
43 changes: 43 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
defaults: &defaults
working_directory: ~/project/repo
docker:
- image: circleci/node:latest@sha256:23e53550bd5ebb3377c273e64a639de453248bcc8e06e68633e89a963d6e4cf1

version: 2
jobs:
test:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v1-dependencies-{{ .Branch }}-
- v1-dependencies-
- run: yarn install --frozen-lockfile
- save_cache:
key: v1-dependencies-{{ .Branch }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run: yarn test
- persist_to_workspace:
root: ~/project
paths:
- repo
release:
<<: *defaults
steps:
- attach_workspace:
at: ~/project
- run: .circleci/setup-git.sh > /dev/null 2>&1
- run: yarn semantic-release

workflows:
version: 2
test_and_release:
jobs:
- test
- release:
context: Release
requires:
- test
4 changes: 2 additions & 2 deletions .travis/setup-git.sh → .circleci/setup-git.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
openssl aes-256-cbc -K $encrypted_342f2f6ad141_key -iv $encrypted_342f2f6ad141_iv -in .travis/gpg.key.enc -d | /usr/bin/gpg --batch --no-tty --import --
echo -n "${GIT_KEY}" | base64 -d | /usr/bin/gpg --batch --no-tty --import --

git config --local gpg.program ".travis/sign.sh"
git config --local gpg.program ".circleci/sign.sh"

git config --local commit.gpgsign true

Expand Down
File renamed without changes.
25 changes: 0 additions & 25 deletions .travis.yml

This file was deleted.

Binary file removed .travis/gpg.key.enc
Binary file not shown.
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
{
"name": "@mi11er/eslint-config",
"version": "2.2.1",
"description": "@mi11er/eslint-config combines various plugins and rulesets for use in mi11er.net projects",
"keywords": [
"eslint",
"eslint-config"
],
"description":
"@mi11er/eslint-config combines various plugins and rulesets for use in mi11er.net projects",
"keywords": ["eslint", "eslint-config"],
"homepage": "https://github.com/mi11er-net/eslint-config",
"bugs": {
"url": "https://github.com/mi11er-net/eslint-config/issues"
Expand Down Expand Up @@ -33,6 +31,7 @@
"lint-staged": "lint-staged",
"nsp": "nsp check",
"semantic-release": "semantic-release",
"test": "run-s lint",
"pretty-quick": "pretty-quick --staged"
},
"config": {
Expand Down Expand Up @@ -94,9 +93,7 @@
},
{
"path": "@semantic-release/git",
"assets": [
"**"
]
"assets": ["**"]
}
],
"publish": [
Expand Down

0 comments on commit 9264c4f

Please sign in to comment.