aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2018-03-10 04:38:28 +0800
committerkumavis <aaron@kumavis.me>2018-03-10 04:38:28 +0800
commita13ed5e65abefe4573f246cd46de8638b967741f (patch)
tree910fc9bb5d202504fbcbf3cfb0f6062aa38713af /.circleci/config.yml
parent51b806797a3e20f96e3b3ee9ef13f07a4e00d494 (diff)
downloadtangerine-wallet-browser-a13ed5e65abefe4573f246cd46de8638b967741f.tar
tangerine-wallet-browser-a13ed5e65abefe4573f246cd46de8638b967741f.tar.gz
tangerine-wallet-browser-a13ed5e65abefe4573f246cd46de8638b967741f.tar.bz2
tangerine-wallet-browser-a13ed5e65abefe4573f246cd46de8638b967741f.tar.lz
tangerine-wallet-browser-a13ed5e65abefe4573f246cd46de8638b967741f.tar.xz
tangerine-wallet-browser-a13ed5e65abefe4573f246cd46de8638b967741f.tar.zst
tangerine-wallet-browser-a13ed5e65abefe4573f246cd46de8638b967741f.zip
ci - introduce circle ci 2.0
Diffstat (limited to '.circleci/config.yml')
-rw-r--r--.circleci/config.yml52
1 files changed, 52 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 000000000..588b2968c
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,52 @@
+ version: 2
+jobs:
+ build:
+ # working_directory: ~/mern-starter
+ # The primary container is an instance of the first list image listed. Your build commands run in this container.
+ docker:
+ - image: circleci/node:8-browsers
+ # # The secondary container is an instance of the second listed image which is run in a common network where ports exposed on the primary container are available on localhost.
+ # - image: mongo:3.4.4
+ steps:
+ - checkout
+ - run:
+ name: Update npm
+ command: 'sudo npm install -g npm@latest'
+ - restore_cache:
+ key: dependency-cache-{{ checksum "package.json" }}
+ - run:
+ name: Install npm
+ command: npm install
+ - save_cache:
+ key: dependency-cache-{{ checksum "package.json" }}
+ paths:
+ - node_modules
+ test:
+ docker:
+ - image: circleci/node:8-browsers
+ steps:
+ - checkout
+ - run:
+ name: Test
+ command: npm test
+ # - run:
+ # name: Generate code coverage
+ # command: './node_modules/.bin/nyc report --reporter=text-lcov'
+ # - store_artifacts:
+ # path: test-results.xml
+ # prefix: tests
+ # - store_artifacts:
+ # path: coverage
+ # prefix: coverage
+
+workflows:
+ version: 2
+ build_and_test:
+ jobs:
+ - build
+ - test:
+ requires:
+ - build
+ filters:
+ branches:
+ only: master