forked from thoughtbot/community
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
52 lines (52 loc) · 1.71 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
51
52
version: 2
jobs:
build:
docker:
- image: circleci/elixir:1.6.1-browsers
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
PHANTOMJS_VERSION: 2.1.1
CI: true
- image: circleci/postgres:9.6-alpine-ram
environment:
POSTGRES_USER: postgres
working_directory: /home/circleci/community
steps:
- checkout
- restore_cache:
keys:
- asdf-node-cache-{{ arch }}-{{ checksum ".tool-versions" }}
- restore_cache:
keys:
- dependency-cache-{{ arch }}-{{ .Branch }}-{{ checksum "mix.lock" }}
- dependency-cache-{{ arch }}-{{ .Branch }}
- dependency-cache-{{ arch }}
- restore_cache:
keys:
- npm-cache-{{ arch }}-{{ .Branch }}-{{ checksum "package-lock.json" }}
- npm-cache-{{ arch }}-{{ .Branch }}
- npm-cache-{{ arch }}
- run: bin/setup
- save_cache:
key: asdf-node-cache-{{ arch }}-{{ checksum ".tool-versions" }}
paths: "~/.asdf"
- save_cache:
key: dependency-cache-{{ arch }}-{{ .Branch }}-{{ checksum "mix.lock" }}
paths: "deps"
- save_cache:
key: dependency-cache-{{ arch }}-{{ .Branch }}
paths: "deps"
- save_cache:
key: dependency-cache-{{ arch }}
paths: "deps"
- save_cache:
key: npm-cache-{{ arch }}-{{ .Branch }}-{{ checksum "package-lock.json" }}
paths: "node_modules"
- save_cache:
key: npm-cache-{{ arch }}-{{ .Branch }}
paths: "node_modules"
- save_cache:
key: npm-cache-{{ arch }}
paths: "node_modules"
- run: bin/test_suite