0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00
penpot/.circleci/config.yml

132 lines
3.4 KiB
YAML
Raw Permalink Normal View History

2021-02-01 08:06:06 -05:00
version: 2
jobs:
build:
docker:
- image: penpotapp/devenv:latest
- image: cimg/postgres:14.5
2021-02-01 08:06:06 -05:00
environment:
POSTGRES_USER: penpot_test
POSTGRES_PASSWORD: penpot_test
2021-03-30 08:35:18 -05:00
POSTGRES_DB: penpot_test
- image: cimg/redis:7.0.5
2021-02-01 08:06:06 -05:00
working_directory: ~/repo
resource_class: medium+
2021-02-01 08:06:06 -05:00
environment:
JAVA_OPTS: -Xmx4g -Xms100m -XX:+UseSerialGC
NODE_OPTIONS: --max-old-space-size=4096
2021-02-01 08:06:06 -05:00
steps:
- checkout
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "backend/deps.edn" }}-{{ checksum "frontend/deps.edn"}}-{{ checksum "common/deps.edn"}}
2021-02-01 08:06:06 -05:00
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run: cd .clj-kondo && cat config.edn
- run: cat .cljfmt.edn
- run: clj-kondo --version
2024-01-05 07:43:38 -05:00
- run:
name: "backend fmt check"
2024-01-05 07:43:38 -05:00
working_directory: "./backend"
command: |
yarn install
yarn run fmt:clj:check
- run:
name: "exporter fmt check"
2024-01-05 07:43:38 -05:00
working_directory: "./exporter"
command: |
yarn install
yarn run fmt:clj:check
- run:
name: "common fmt check"
2024-01-05 07:43:38 -05:00
working_directory: "./common"
command: |
yarn install
yarn run fmt:clj:check
- run:
name: "frontend fmt check"
2024-01-05 07:43:38 -05:00
working_directory: "./frontend"
command: |
yarn install
yarn run fmt:clj:check
- run:
name: "common linter check"
working_directory: "./common"
2021-11-18 10:59:53 -05:00
command: |
yarn install
yarn run lint:clj
- run:
name: "frontend linter check"
working_directory: "./frontend"
2021-11-18 10:59:53 -05:00
command: |
yarn install
yarn run lint:scss
yarn run lint:clj
2021-02-01 08:06:06 -05:00
- run:
name: "backend linter check"
working_directory: "./backend"
command: |
yarn install
yarn run lint:clj
- run:
name: "exporter linter check"
working_directory: "./exporter"
command: |
yarn install
yarn run lint:clj
- run:
name: "common tests"
working_directory: "./common"
command: |
yarn test
clojure -M:dev:test
2021-02-01 08:06:06 -05:00
- run:
name: "frontend tests"
working_directory: "./frontend"
command: |
yarn install
yarn test
- run:
name: "frontend integration tests"
working_directory: "./frontend"
command: |
yarn install
yarn run compile
2024-06-06 00:48:41 -05:00
clojure -M:dev:shadow-cljs release main
yarn playwright install --with-deps chromium
yarn e2e:test
2024-05-09 06:17:12 -05:00
- run:
name: "backend tests"
working_directory: "./backend"
command: |
clojure -M:dev:test
2021-02-01 08:06:06 -05:00
environment:
2021-03-30 08:35:18 -05:00
PENPOT_TEST_DATABASE_URI: "postgresql://localhost/penpot_test"
PENPOT_TEST_DATABASE_USERNAME: penpot_test
PENPOT_TEST_DATABASE_PASSWORD: penpot_test
PENPOT_TEST_REDIS_URI: "redis://localhost/1"
2021-02-01 08:06:06 -05:00
- save_cache:
paths:
- ~/.m2
key: v1-dependencies-{{ checksum "backend/deps.edn" }}-{{ checksum "frontend/deps.edn"}}-{{ checksum "common/deps.edn"}}
2021-02-01 08:06:06 -05:00