wrolpi/.circleci/config.yml

151 lines
4.3 KiB
YAML
Raw Normal View History

2022-02-20 10:59:30 -07:00
# Use the latest 2.1 version of CircleCI pipeline process engine.
# See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Define a job to be invoked later in a workflow.
# See: https://circleci.com/docs/2.0/configuration-reference/#jobs
jobs:
app-tests-12:
2023-01-07 18:53:22 -07:00
docker:
- image: cimg/node:12.13
2023-01-07 18:53:22 -07:00
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "app/package-lock.json" }}
- run: cd app && npm install
- save_cache:
key: dependency-cache-{{ checksum "app/package-lock.json" }}
paths:
- ./app/node_modules
- run: cd app && npm run test
app-tests-14:
docker:
- image: cimg/node:14.21
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "app/package-lock.json" }}
- run: cd app && npm install
- save_cache:
key: dependency-cache-{{ checksum "app/package-lock.json" }}
paths:
- ./app/node_modules
- run: cd app && npm run test
app-tests-16:
docker:
- image: cimg/node:16.19
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "app/package-lock.json" }}
- run: cd app && npm install --legacy-peer-deps
- save_cache:
key: dependency-cache-{{ checksum "app/package-lock.json" }}
paths:
- ./app/node_modules
- run: cd app && npm run test
app-tests-18:
docker:
- image: cimg/node:18.12
steps:
- checkout
- restore_cache:
key: dependency-cache-{{ checksum "app/package-lock.json" }}
- run: cd app && npm install --legacy-peer-deps
- save_cache:
key: dependency-cache-{{ checksum "app/package-lock.json" }}
paths:
- ./app/node_modules
- run: cd app && npm run test
api-tests-3-8:
2022-02-20 10:59:30 -07:00
docker:
2022-02-20 11:15:49 -07:00
- image: cimg/python:3.8
2022-02-20 11:19:19 -07:00
- image: cimg/postgres:12.9
2022-02-20 11:18:22 -07:00
environment:
POSTGRES_USER: postgres
POSTGRES_DB: wrolpi
POSTGRES_PASSWORD: "wrolpi"
2022-03-09 19:09:09 -07:00
steps:
- checkout
- run: sudo apt-get update
- run: sudo apt-get install -y ffmpeg
- restore_cache:
key: deps-3.8-{{ checksum "requirements.txt" }}
2022-03-09 19:09:09 -07:00
- run:
name: Install Requirements
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
key: deps-3.8-{{ checksum "requirements.txt" }}
paths:
- "venv"
2022-03-09 19:09:09 -07:00
- run:
command: './venv/bin/pytest -svv wrolpi modules'
api-tests-3-9:
2022-03-09 19:09:09 -07:00
docker:
- image: cimg/python:3.9
2022-03-09 19:13:21 -07:00
- image: cimg/postgres:13.5
2022-03-09 19:09:09 -07:00
environment:
POSTGRES_USER: postgres
POSTGRES_DB: wrolpi
POSTGRES_PASSWORD: "wrolpi"
steps:
- checkout
- run: sudo apt-get update
- run: sudo apt-get install -y ffmpeg
- restore_cache:
key: deps-3.9-{{ checksum "requirements.txt" }}
2022-03-09 19:09:09 -07:00
- run:
name: Install Requirements
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
key: deps-3.9-{{ checksum "requirements.txt" }}
paths:
- "venv"
2022-03-09 19:09:09 -07:00
- run:
command: './venv/bin/pytest -svv wrolpi modules'
api-tests-3-10:
2022-03-09 19:09:09 -07:00
docker:
- image: cimg/python:3.10
2022-03-09 19:13:21 -07:00
- image: cimg/postgres:14.1
2022-03-09 19:09:09 -07:00
environment:
POSTGRES_USER: postgres
POSTGRES_DB: wrolpi
POSTGRES_PASSWORD: "wrolpi"
2022-02-20 10:59:30 -07:00
steps:
- checkout
2022-02-20 11:26:58 -07:00
- run: sudo apt-get update
- run: sudo apt-get install -y ffmpeg
- restore_cache:
key: deps-3.10-{{ checksum "requirements.txt" }}
2022-02-20 10:59:30 -07:00
- run:
name: Install Requirements
command: |
python3 -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- save_cache:
key: deps-3.10-{{ checksum "requirements.txt" }}
paths:
- "venv"
2022-02-20 11:15:49 -07:00
- run:
2022-02-20 11:28:53 -07:00
command: './venv/bin/pytest -svv wrolpi modules'
2022-02-20 10:59:30 -07:00
workflows:
2022-03-09 18:40:25 -07:00
wrolpi-api-tests:
2022-02-20 10:59:30 -07:00
jobs:
- api-tests-3-8
- api-tests-3-9
- api-tests-3-10
2023-01-07 18:55:07 -07:00
wrolpi-app-test:
jobs:
- app-tests-12
- app-tests-14
- app-tests-16
- app-tests-18