mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-07 02:33:39 +02:00
Add build step to circleci config
This commit is contained in:
parent
c3d97e3235
commit
3a172bf1e4
1 changed files with 36 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
version: 2
|
version: 2
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
working_directory: ~/repo
|
working_directory: ~/repo
|
||||||
|
|
@ -11,19 +12,51 @@ jobs:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
keys:
|
keys:
|
||||||
- build_cache-{{ checksum "package.json" }}-{{ checksum "shadow-cljs.edn" }}
|
- build_cache-{{ checksum "package.json" }}-{{ checksum "shadow-cljs.edn" }}
|
||||||
- run: npm install
|
- run:
|
||||||
- run: npm run test
|
name: Install dependencies
|
||||||
|
command: npm install
|
||||||
|
- run:
|
||||||
|
name: Test
|
||||||
|
command: npm test
|
||||||
- save_cache:
|
- save_cache:
|
||||||
paths:
|
paths:
|
||||||
- node_modules
|
- node_modules
|
||||||
- ~/.m2
|
- ~/.m2
|
||||||
|
- ~/.npm
|
||||||
key: build_cache-{{ checksum "package.json" }}-{{ checksum "shadow-cljs.edn" }}
|
key: build_cache-{{ checksum "package.json" }}-{{ checksum "shadow-cljs.edn" }}
|
||||||
|
build:
|
||||||
|
working_directory: ~/repo
|
||||||
|
docker:
|
||||||
|
- image: circleci/openjdk:11-jdk-stretch-node-browsers
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- build_cache-{{ checksum "package.json" }}-{{ checksum "shadow-cljs.edn" }}
|
||||||
|
- run:
|
||||||
|
name: Install dependencies
|
||||||
|
command: npm install
|
||||||
|
- run:
|
||||||
|
name: Build SPA
|
||||||
|
command: npm run build
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
- ~/.m2
|
||||||
|
- ~/.npm
|
||||||
|
key: build_cache-{{ checksum "package.json" }}-{{ checksum "shadow-cljs.edn" }}
|
||||||
|
- persist_to_workspace:
|
||||||
|
root: /home/circleci/repo/public
|
||||||
|
paths:
|
||||||
|
- "*"
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
test:
|
build:
|
||||||
jobs:
|
jobs:
|
||||||
- test:
|
- test:
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
ignore:
|
ignore:
|
||||||
- gh-pages
|
- gh-pages
|
||||||
|
- build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue