-
Notifications
You must be signed in to change notification settings - Fork 3
/
circle.yml
50 lines (41 loc) · 1.1 KB
/
circle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
version: 2
jobs:
build:
working_directory: ~/imhere
docker:
- image: node:6.2.2
cmd: ["/bin/bash"]
- image: redis:3.0
steps:
- run:
name: Install System Libs
command: |
apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
echo "deb http://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt -qq update
apt install -y -qq git yarn bcrypt
- checkout
- restore_cache:
key: dependency-cache-yarn
- run:
name: Install Dependencies
command: |
yarn install
cp .env.sample .env
- save_cache:
key: dependency-cache-yarn
paths:
- ~/.cache/yarn
- run:
name: Run eslint
command: |
yarn lint
- run:
name: Run Tests
command: |
yarn test:debug
- store_artifacts:
path: ~/imhere/coverage
destination: prefix
- store_test_results:
path: ~/imhere/coverage