Commit 31f11bdd authored by Isabella Skořepová's avatar Isabella Skořepová

Add CI steps to run unittests and simple test

simple test = just compile example site
parent af2b20d7
Pipeline #136 failed with stage
stages:
- test
- deploy
trigger:
stage: deploy
only:
- master
script:
- "curl -X POST -F token=$GITLAB_TOKEN -F ref=master https://git.ok1kvk.cz/api/v3/projects/72/trigger/builds"
before_script:
- node --version
- npm --version
- npm install
basictest:
stage: test
script:
- node index.js --contentdir sitegin/tests/content --staticdir sitegin/tests/static --builddir build --noserver
unittest:
stage: test
script:
- npm test
artifacts:
paths:
- coverage
cache:
paths:
- node_modules
# needs following env variable: $GITLAB_TOKEN
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment