2
0
mirror of https://github.com/offen/website.git synced 2024-12-23 05:20:21 +01:00

scaffold script app

This commit is contained in:
Frederik Ring 2019-05-10 12:54:39 +02:00
parent d38b9a970d
commit cb03bebf03
3 changed files with 58 additions and 0 deletions

View File

@ -57,9 +57,30 @@ jobs:
name: Run tests
command: npm test
script:
docker:
- image: circleci/node:10-browsers
working_directory: ~/offen/script
steps:
- checkout:
path: ~/offen
- restore_cache:
key: offen-script-{{ checksum "package.json" }}
- run:
name: Install dependencies
command: npm install
- save_cache:
paths:
- ~/offen/script/node_modules
key: offen-script-{{ checksum "package.json" }}
- run:
name: Run tests
command: npm test
workflows:
version: 2
build_and_test:
jobs:
- server
- vault
- script

View File

@ -90,6 +90,30 @@ cd vault
npm test
```
#### `script`
To work on the `script` you will need to install `docker-compose`.
First, install the project's dependencies:
```
cd script
npm install
```
Run the server:
```
docker-compose up
```
Run the tests:
```
cd script
npm test
```
### License

View File

@ -32,3 +32,16 @@ vault:
- 9977:9977
environment:
- SERVER_HOST=https://local.offen.dev:8080
script:
image: timbru31/node-chrome:slim
working_dir: /script
volumes:
- ./script:/script
- ./local.offen.dev.pem:/script/local.offen.dev.pem
- ./local.offen.dev-key.pem:/script/local.offen.dev-key.pem
command: npm start -- --port 9966
ports:
- 9966:9966
environment:
- VAULT_HOST=https://local.offen.dev:9977