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"
54 - apt-get update; apt-get install -y make python3 ca-certificates
61 build site for target environment using scrape method:
65 - misc/collect.py scrape https://downloads.openwrt.org build
67 build site for target environment using scan method:
71 - misc/collect.py scan downloads.openwrt.org tests/profiles build
75 image: selenium/standalone-firefox:latest
77 - /opt/bin/entry_point.sh &
78 - sudo apt-get update; sudo apt-get install -y python3-pip python3-pytest
79 - pip3 install selenium-firefox
80 - (cd build; python3 -m http.server &)
83 test scraped site with selenium:
86 - build site for target environment using scrape method
88 test scaned site with selenium:
91 - build site for target environment using scan method