Skip to content

Commit 8ef6a5b

Browse files
committed
Adding Circle ci config
1 parent bf83eab commit 8ef6a5b

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.circleci/config.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: 2
2+
jobs:
3+
4+
build:
5+
working_directory: /opt/project-x
6+
docker:
7+
- image: perl:5.24
8+
- image: postgres:9.6-alpine
9+
environment:
10+
DB_HOST: localhost
11+
steps:
12+
- run: cpanm Carton
13+
14+
- checkout
15+
16+
# Download and cache dependencies
17+
- restore_cache:
18+
keys:
19+
- dependency-cache-{{ checksum "cpanfile.snapshot" }}
20+
# fallback to using the latest cache if no exact match is found
21+
- dependency-cache-
22+
23+
- run:
24+
name: Install Dependencies
25+
command: carton install
26+
27+
- save_cache:
28+
key: dependency-cache-{{ checksum "cpanfile.snapshot" }}
29+
paths:
30+
- ./local
31+
32+
- run:
33+
name: Run Tests
34+
command: carton exec prove -lv

0 commit comments

Comments
 (0)