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 git
62 build site for target environment using scrape method:
66 - sed -i "s;%GIT_VERSION%;$(git describe --tags);" build/index.html
67 - misc/collect.py scrape https://downloads.openwrt.org build
69 build site for target environment using scan method:
73 - sed -i "s;%GIT_VERSION%;$(git describe --tags);" build/index.html
74 - misc/collect.py scan downloads.openwrt.org tests/profiles build
78 image: selenium/standalone-firefox:latest
80 - /opt/bin/entry_point.sh &
81 - sudo apt-get update; sudo apt-get install -y python3-pip python3-pytest
82 - pip3 install selenium-firefox
83 - (cd build; python3 -m http.server &)
86 test scraped site with selenium:
89 - build site for target environment using scrape method
91 test scaned site with selenium:
94 - build site for target environment using scan method
100 - build site for target environment using scrape method
102 - apk update && apk add rsync
107 - rsync -rlptvz build/ "rsync://firmware_selector@mirror-02.infra.openwrt.org/$RSYNC_TARGET/www/"
109 deploy to firmware-selector.staging.openwrt.org:
112 RSYNC_TARGET: firmware-selector-staging-upload
114 deploy to firmware-selector.openwrt.org:
117 RSYNC_TARGET: firmware-selector-upload
120 - apk update && apk add rsync