2
0
mirror of https://github.com/offen/website.git synced 2024-10-18 12:10:25 +02: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 name: Run tests
command: npm test 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: workflows:
version: 2 version: 2
build_and_test: build_and_test:
jobs: jobs:
- server - server
- vault - vault
- script

View File

@ -90,6 +90,30 @@ cd vault
npm test 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 ### License

View File

@ -32,3 +32,16 @@ vault:
- 9977:9977 - 9977:9977
environment: environment:
- SERVER_HOST=https://local.offen.dev:8080 - 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