Skip to content

Commit

Permalink
Use CircleCI 2.0 (palantir#3490)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff authored and adidahiya committed Nov 15, 2017
1 parent 87906ab commit 53a864e
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 23 deletions.
96 changes: 96 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
version: 2
jobs:
build:
docker:
- image: circleci/node:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- run:
name: Install dependencies
command: yarn
- save_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
paths:
- node_modules
- run: yarn compile
- persist_to_workspace:
root: '.'
paths:
- lib
- build
lint:
docker:
- image: circleci/node:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- attach_workspace:
at: '.'
- run: yarn lint
test:
docker:
- image: circleci/node:8
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- attach_workspace:
at: '.'
- run: yarn test
test2.1:
docker:
- image: circleci/node:4
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- attach_workspace:
at: '.'
- run: yarn add [email protected]
- run: yarn test
test2.4:
docker:
- image: circleci/node:6
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- attach_workspace:
at: '.'
- run: yarn add [email protected]
- run: yarn test
testNext:
docker:
- image: circleci/node:latest
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "yarn.lock" }}
- attach_workspace:
at: '.'
- run: yarn add typescript@next
- run: yarn test

workflows:
version: 2
build_lint_test:
jobs:
- build
- lint:
requires:
- build
- test:
requires:
- build
- test2.1:
requires:
- build
- test2.4:
requires:
- build
- testNext:
requires:
- build
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
/build/
/docs/site/
/scripts/*.js
!/scripts/assertMinCircleNodes.js
/scripts/*.js.map
/lib/
/test/executable/tslint.json
Expand Down
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
.vscode
.nycrc
.editorconfig
.circleci
appveyor.yml
circle.yml
tslint.json
Expand Down
14 changes: 0 additions & 14 deletions circle.yml

This file was deleted.

8 changes: 0 additions & 8 deletions scripts/assertMinCircleNodes.js

This file was deleted.

0 comments on commit 53a864e

Please sign in to comment.