diff options
-rw-r--r-- | .gitlab-ci.yml | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 76a7aeb..e9a0873 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,22 +1,27 @@ -image: node:6.1.0 +image: debian:buster stages: - test before_script: - apt-get update -y - - apt-get install -y python3-pip nodejs - - pip3 install json-spec - - npm install -g csslint + - apt-get install -y curl fontforge python3-pip sassc virtualenv git test_json: stage: test script: - - cd lab/ - - json validate --schema-file=metadata.json --document-file=metadata.json + - virtualenv -p python3 venv + - source venv/bin/activate + - pip3 install json-spec + - json validate --schema-file=lab/metadata.json --document-file=lab/metadata.json + +test_build: + stage: test + script: + - bash build.sh test_css: stage: test script: - - cd css/ - - csslint libresocial.css + - git submodule update --init + - python3 test/w3c-validator.py dist/css/libresocial.css |