pierre darcas 6 years ago
parent
commit
4c9967c95d
  1. 16
      .circleci/config.yml

16
.circleci/config.yml

@ -6,10 +6,10 @@ jobs:
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
key: yarn-v2-packages-{{ checksum "yarn.lock" }}
key: yarn-v-packages-{{ checksum "yarn.lock" }}
- run: yarn global add node-gyp && yarn install - run: yarn global add node-gyp && yarn install
- save_cache: - save_cache:
key: yarn-v2-packages-{{ checksum "yarn.lock" }}
key: yarn-v-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
lint: lint:
@ -18,10 +18,10 @@ jobs:
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
key: yarn-v2-packages-{{ checksum "yarn.lock" }}
key: yarn-v-packages-{{ checksum "yarn.lock" }}
- run: yarn lint && yarn format:check - run: yarn lint && yarn format:check
- save_cache: - save_cache:
key: yarn-v2-packages-{{ checksum "yarn.lock" }}
key: yarn-v-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
test: test:
@ -30,10 +30,10 @@ jobs:
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
key: yarn-v2-packages-{{ checksum "yarn.lock" }}
key: yarn-v-packages-{{ checksum "yarn.lock" }}
- run: yarn test:ci - run: yarn test:ci
- save_cache: - save_cache:
key: yarn-v2-packages-{{ checksum "yarn.lock" }}
key: yarn-v-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules
test_e2e: test_e2e:
@ -47,7 +47,7 @@ jobs:
steps: steps:
- checkout # check out the code in the project directory - checkout # check out the code in the project directory
- restore_cache: - restore_cache:
key: yarn-v2-packages-{{ checksum "yarn.lock" }}
key: yarn-v-packages-{{ checksum "yarn.lock" }}
- run: - run:
command: yarn test:e2e command: yarn test:e2e
environement: environement:
@ -57,7 +57,7 @@ jobs:
API_HOST: localhost API_HOST: localhost
API_PROTOCOL: http API_PROTOCOL: http
- save_cache: - save_cache:
key: yarn-v2-packages-{{ checksum "yarn.lock" }}
key: yarn-v-packages-{{ checksum "yarn.lock" }}
paths: paths:
- ./node_modules - ./node_modules

Loading…
Cancel
Save