2 - local: '.gitlab/ci/prebuild.yml'
3 - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/main.yml
9 check HTML, JS, CSS with eslint and prettier:
17 - yarn prettier --check www/
20 check HTML, CSS and SVG with html5validator:
22 image: cyb3rjak3/html5validator:latest
24 - html5validator --root www --also-check-css --show-warnings --log INFO
28 image: python:$CI_PYTHON_VERSION-slim-buster
30 - apt-get update; apt-get install -y make
33 - misc/collect.py scrape https://downloads.openwrt.org build
40 build site on Python 3.6:
41 extends: .build python
43 CI_PYTHON_VERSION: "3.6"
45 build site on Python 3.8:
46 extends: .build python
48 CI_PYTHON_VERSION: "3.8"
50 build site for target environment:
54 - apt-get update; apt-get install -y make python3 ca-certificates
57 - misc/collect.py scrape https://downloads.openwrt.org build
64 test site with selenium:
66 image: selenium/standalone-firefox:latest
68 - build site for target environment
70 - /opt/bin/entry_point.sh &
71 - sudo apt-get update; sudo apt-get install -y python3-pip python3-pytest
72 - pip3 install selenium-firefox
73 - (cd build; python3 -m http.server &)