mirror of
https://github.com/heyarne/airsonic-ui.git
synced 2026-05-06 18:33:38 +02:00
Add circleci config
This commit is contained in:
parent
53748941c0
commit
f0324a236d
3 changed files with 30 additions and 5 deletions
25
.circleci/config.yml
Normal file
25
.circleci/config.yml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
version: 2
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
working_directory: ~/repo
|
||||||
|
docker:
|
||||||
|
- image: circleci/openjdk:11-jdk-stretch-node-browsers
|
||||||
|
environment:
|
||||||
|
- CHROME_BIN: "/usr/bin/google-chrome"
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- build_cache-{{ checksum "package.json" }}-{{ checksum "shadow-cljs.edn" }}
|
||||||
|
- run: npm install
|
||||||
|
- run: npm run test
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- node_modules
|
||||||
|
- ~/.m2
|
||||||
|
key: build_cache-{{ checksum "package.json" }}-{{ checksum "shadow-cljs.edn" }}
|
||||||
|
workflows:
|
||||||
|
version: 2
|
||||||
|
test:
|
||||||
|
jobs:
|
||||||
|
- test
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# Airsonic Web Client [](https://travis-ci.org/heyarne/airsonic-ui)
|
# Airsonic Web Client [](https://travis-ci.org/heyarne/airsonic-ui) [](https://circleci.com/gh/heyarne/airsonic-ui)
|
||||||
|
|
||||||
This repository contains an alternative web frontend for [airsonic](https://github.com/airsonic/airsonic). The goal is to eventually be able to fully replace the current web interface.
|
This repository contains an alternative web frontend for [airsonic](https://github.com/airsonic/airsonic). The goal is to eventually be able to fully replace the current web interface.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,15 +18,15 @@ module.exports = function (config) {
|
||||||
},
|
},
|
||||||
// configure travis-ci; based on this: https://stackoverflow.com/questions/19255976/how-to-make-travis-execute-angular-tests-on-chrome-please-set-env-variable-chr#25661593
|
// configure travis-ci; based on this: https://stackoverflow.com/questions/19255976/how-to-make-travis-execute-angular-tests-on-chrome-please-set-env-variable-chr#25661593
|
||||||
customLaunchers: {
|
customLaunchers: {
|
||||||
ChromeHeadlessTravisCI: {
|
ChromeHeadlessCI: {
|
||||||
base: 'ChromeHeadless',
|
base: 'ChromeHeadless',
|
||||||
flags: ['--no-sandbox']
|
flags: ['--no-sandbox', '--headless', '--nogpu']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.TRAVIS) {
|
if (process.env.TRAVIS || process.env.CI) {
|
||||||
configuration.browsers = ['ChromeHeadlessTravisCI']
|
configuration.browsers = ['ChromeHeadlessCI']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue