Skip to content
Snippets Groups Projects
Verified Commit 31f11bdd authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

Add CI steps to run unittests and simple test

simple test = just compile example site
parent af2b20d7
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment