Browse Source

Adding initial CI setup for the administration client

framework
Drew Short 6 years ago
parent
commit
211d14cb1f
  1. 23
      .gitlab-ci.yml
  2. 2
      administration_client/package.json
  3. 2
      administration_client/public/index.html

23
.gitlab-ci.yml

@ -2,7 +2,7 @@ stages:
- test - test
- deploy - deploy
tests:
server-tests:
image: python:3.6-slim-stretch image: python:3.6-slim-stretch
stage: test stage: test
script: script:
@ -13,16 +13,25 @@ tests:
tags: tags:
- docker - docker
administration-client-tests:
image: node:8.11-stretch
stage: test
script:
- yarn install
- yarn run test:unit
tags:
- docker
pages: pages:
image: python:3.6-slim-stretch image: python:3.6-slim-stretch
stage: deploy stage: deploy
script: script:
- python3 -m pip install pipenv
- cd server
- pipenv install --dev --system
- cd documentation
- sphinx-build -M html "." "_build"
- mv _build/html/ ../../public/
- python3 -m pip install pipenv
- cd server
- pipenv install --dev --system
- cd documentation
- sphinx-build -M html "." "_build"
- mv _build/html/ ../../public/
artifacts: artifacts:
paths: paths:
- public - public

2
administration_client/package.json

@ -1,5 +1,5 @@
{ {
"name": "administration_client",
"name": "atheneum_administration_client",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"scripts": { "scripts": {

2
administration_client/public/index.html

@ -9,7 +9,7 @@
</head> </head>
<body> <body>
<noscript> <noscript>
<strong>We're sorry but administration_client doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
<strong>We're sorry but Atheneum Administration Client doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript> </noscript>
<div id="app"></div> <div id="app"></div>
<!-- built files will be auto injected --> <!-- built files will be auto injected -->

Loading…
Cancel
Save