mirror of
https://github.com/FlightControl-Master/MOOSE.git
synced 2025-08-15 10:47:21 +00:00
Build optimization
- Remove appveyor - Added docker compose for building docs locally - Added manuall run of GitHub Action builds - Added paths to trigger builds
This commit is contained in:
13
docker/moose-build-docs/Dockerfile
Normal file
13
docker/moose-build-docs/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM nickblah/lua:5.1.5-luarocks-ubuntu
|
||||
|
||||
RUN apt-get -qq update
|
||||
RUN apt-get -qq install tree
|
||||
RUN apt-get -qq install build-essential
|
||||
RUN apt-get -qq install git
|
||||
RUN luarocks install markdown 0.32-2
|
||||
RUN luarocks install penlight 1.11.0-1
|
||||
RUN luarocks install metalua-compiler 0.7.3-1
|
||||
RUN luarocks install metalua-parser 0.7.3-2
|
||||
RUN luarocks install checks
|
||||
COPY start.sh /start.sh
|
||||
RUN chmod +x /start.sh
|
||||
14
docker/moose-build-docs/docker-compose.yml
Normal file
14
docker/moose-build-docs/docker-compose.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
version: "3.5"
|
||||
|
||||
services:
|
||||
lua:
|
||||
image: moose/build-docs
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: moose-build-docs
|
||||
volumes:
|
||||
- ../../:/moose
|
||||
stdin_open: true
|
||||
tty: true
|
||||
command: /bin/bash -c /start.sh
|
||||
24
docker/moose-build-docs/start.sh
Normal file
24
docker/moose-build-docs/start.sh
Normal file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Prepare environment
|
||||
cd /moose/
|
||||
mkdir -p build/tools
|
||||
mkdir -p build/doc
|
||||
|
||||
# Checkout luadocumentor
|
||||
cd /moose/build/tools
|
||||
if [ ! -f /moose/build/tools/luadocumentor/luadocumentor.lua ]
|
||||
then
|
||||
git clone --branch patch-1 --single-branch https://github.com/Applevangelist/luadocumentor.git
|
||||
fi
|
||||
|
||||
# Run luadocumentor
|
||||
cd /moose/build/tools/luadocumentor
|
||||
lua luadocumentor.lua -d /moose/build/doc '/moose/Moose Development/Moose'
|
||||
|
||||
# Copy generated files in the MOOSE_DOCS repo if it is already there
|
||||
if [ -d /moose/build/MOOSE_DOCS/Documentation ]; then
|
||||
rm -rf /moose/build/MOOSE_DOCS/Documentation
|
||||
mkdir -p /moose/build/MOOSE_DOCS/Documentation
|
||||
cp /moose/build/doc/* /moose/build/MOOSE_DOCS/Documentation/
|
||||
fi
|
||||
Reference in New Issue
Block a user