Fixing CI

master
Ryan Summers 2021-07-16 14:12:08 +02:00
parent d6dfbd2c88
commit fba60ef990
2 changed files with 12 additions and 3 deletions

View File

@ -129,8 +129,11 @@ jobs:
- name: Move firmware documents
run: |
mkdir -p docs/_site/stabilizer
mv target/thumbv7em-none-eabihf/doc docs/_site/stabilizer/firmware
- name: Test User Manual
working-directory: docs
run: rake test
run: |
rake build
mv target/thumbv7em-none-eabihf/doc docs/_site/stabilizer/firmware
rake test

View File

@ -9,6 +9,9 @@ def run_htmlproofer()
options = {
# Assumes html file extensions
assume_extension: true,
file_ignore: [ /stabilizer\/firmware\/.*/ ],
# The options for the curl library that's used.
:typhoeus => {
# This will stop you from getting errors when certs can't be parsed, which doesn't matter in this case.
@ -23,6 +26,9 @@ def run_htmlproofer()
end
task :test do
sh "bundle exec jekyll build -d _site/stabilizer"
run_htmlproofer()
end
task :build do
sh "bundle exec jekyll build -d _site/stabilizer"
end