forked from fnproject/fdk-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
36 lines (36 loc) · 1023 Bytes
/
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
version: 2
jobs:
build:
docker:
- image: circleci/python:3.6.2
working_directory: ~/fdk-python
steps:
- checkout
- restore_cache:
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}
- setup_remote_docker:
docker_layer_caching: true
- run:
command: |
python3 -m venv venv
. venv/bin/activate
pip install tox
pip install -r requirements.txt
- run: docker version
- run: docker pull fnproject/fnserver
# installing Fn CLI and starting the Fn server
- run:
command: |
curl -LSs https://raw.githubusercontent.com/fnproject/cli/master/install | sh
- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "requirements.txt" }}
paths:
- "venv"
- run:
command: |
. venv/bin/activate
tox -epep8
- run:
command: |
. venv/bin/activate
tox -epy3.6