-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcircle.yml
41 lines (39 loc) · 1.27 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
version: 2
test:
override:
- (cd codalab && py.test)
jobs:
build:
environment:
DJANGO_SETTINGS_MODULE: codalab.settings
DJANGO_CONFIGURATION: Dev
docker:
- image: circleci/python:2.7.15
steps:
- checkout
- restore_cache:
key: codalab-{{ .Branch }}-{{ checksum "codalab/requirements/common.txt" }}
- run:
name: CHOWN Python Library Dirs
command: sudo chown -R $(whoami) /usr/local/
- run:
name: Install Memcached reqs
command: sudo apt-get update && sudo apt-get install libmemcached-dev --fix-missing
- run:
name: PIP Install Requirements
command: pip install -r codalab/requirements/common.txt
- save_cache:
key: codalab-{{ .Branch }}-{{ checksum "codalab/requirements/common.txt" }}
paths:
- "~/.cache/pip"
- run:
name: Copy settings
command: cp circlec_dev_setup.py codalab/codalab/settings/local.py
- run:
name: Run PyTest
environment:
DJANGO_SETTINGS_MODULE: "codalab.settings"
DJANGO_CONFIGURATION: "Dev"
CHAHUB_API_URL: "http://localhost/test/"
CHAHUB_API_KEY: "some-secret-key"
command: cd codalab && py.test