2 - local: '.gitlab/ci/prebuild.yml'
3 - remote: https://gitlab.com/ynezz/openwrt-ci/raw/master/openwrt-ci/gitlab/main.yml
10 check HTML, JS, CSS with eslint and prettier:
18 - yarn prettier --check www/
21 check HTML, CSS and SVG with html5validator:
23 image: cyb3rjak3/html5validator:latest
25 - html5validator --root www --also-check-css --show-warnings --log INFO
29 image: python:$CI_PYTHON_VERSION-slim-buster
31 - apt-get update; apt-get install -y make
34 - misc/collect.py scrape https://downloads.openwrt.org build
41 build site on Python 3.6:
42 extends: .build python
44 CI_PYTHON_VERSION: "3.6"
46 build site on Python 3.8:
47 extends: .build python
49 CI_PYTHON_VERSION: "3.8"
55 - apt-get update; apt-get install -y make python3 ca-certificates
62 build site for target environment using scrape method:
66 - misc/collect.py scrape https://downloads.openwrt.org build
68 build site for target environment using scan method:
72 - misc/collect.py scan downloads.openwrt.org tests/profiles build
76 image: selenium/standalone-firefox:latest
78 - /opt/bin/entry_point.sh &
79 - sudo apt-get update; sudo apt-get install -y python3-pip python3-pytest
80 - pip3 install selenium-firefox
81 - (cd build; python3 -m http.server &)
84 test scraped site with selenium:
87 - build site for target environment using scrape method
89 test scaned site with selenium:
92 - build site for target environment using scan method
98 - build site for target environment using scrape method
100 - apk update && apk add rsync
104 - rsync -rlptvz build/ "rsync://firmware_selector@mirror-02.infra.openwrt.org/$RSYNC_TARGET/www/"
106 deploy to firmware-selector.staging.openwrt.org:
109 RSYNC_TARGET: firmware-selector-staging-upload
111 deploy to firmware-selector.openwrt.org:
114 RSYNC_TARGET: firmware-selector-upload
117 - apk update && apk add rsync