2018-06-29 02:05:36 -07:00
|
|
|
version: 2
|
|
|
|
|
jobs:
|
|
|
|
|
build:
|
|
|
|
|
docker:
|
2018-06-29 02:18:45 -07:00
|
|
|
- image: continuumio/miniconda3:4.5.4
|
2018-06-29 02:05:36 -07:00
|
|
|
|
|
|
|
|
working_directory: ~/repo
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
- checkout
|
|
|
|
|
|
|
|
|
|
# Download and cache dependencies
|
|
|
|
|
- restore_cache:
|
|
|
|
|
keys:
|
2018-06-29 02:18:45 -07:00
|
|
|
- v1-dependencies-miniconda3-4.5.4-{{ checksum "setup.py" }}-{{ checksum "dev-requirements.txt" }}
|
|
|
|
|
- v1-dependencies-miniconda3-4.5.4-
|
2018-06-29 02:05:36 -07:00
|
|
|
|
|
|
|
|
- run:
|
|
|
|
|
name: install dependencies
|
|
|
|
|
command: |
|
|
|
|
|
pip install -r dev-requirements.txt
|
|
|
|
|
pip install -e .
|
|
|
|
|
|
|
|
|
|
- save_cache:
|
|
|
|
|
paths:
|
2018-06-29 02:18:45 -07:00
|
|
|
- /opt/conda
|
2018-06-29 02:20:43 -07:00
|
|
|
key: v1-dependencies-miniconda3-4.5.4-{{ checksum "setup.py" }}-{{ checksum "dev-requirements.txt" }}
|
2018-06-29 02:05:36 -07:00
|
|
|
|
|
|
|
|
- run:
|
2018-06-29 02:26:20 -07:00
|
|
|
name: run unit tests
|
2018-06-29 02:05:36 -07:00
|
|
|
command: |
|
2018-06-29 02:21:02 -07:00
|
|
|
py.test tests/
|
2018-06-29 02:26:20 -07:00
|
|
|
|
|
|
|
|
# Run full installer test
|
|
|
|
|
- setup_remote_docker
|
|
|
|
|
|
|
|
|
|
- run:
|
|
|
|
|
name: build docker image
|
|
|
|
|
command: |
|
|
|
|
|
docker build -t tljh-systemd .
|
|
|
|
|
|
|
|
|
|
- run:
|
|
|
|
|
name: start docker image
|
|
|
|
|
command: |
|
|
|
|
|
docker run \
|
|
|
|
|
--privileged \
|
|
|
|
|
--detach \
|
|
|
|
|
--name=tljh-dev \
|
|
|
|
|
tljh-systemd
|