-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29e1b4e
commit 63d948c
Showing
19 changed files
with
1,264 additions
and
546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
codecov: | ||
disable_default_path_fixes: true | ||
fixes: | ||
- "/home/gap/.gap/pkg/ArangoDBInterface/::" | ||
ignore: | ||
- "home/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- "master" | ||
- "*-ci" | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
matrix: | ||
image: [gapsystem/gap-docker, gapsystem/gap-docker-master] | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ${{ matrix.image }} | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- run: mkdir -p /home/gap/.gap/pkg/ | ||
- run: sudo cp -a $GITHUB_WORKSPACE /home/gap/.gap/pkg/ | ||
- run: sudo chown -R gap:gap /home/gap/.gap/pkg/ | ||
- run: | | ||
export HOME="/home/gap" | ||
cd /home/gap/.gap/pkg/ | ||
sudo apt update | ||
sudo apt dist-upgrade -y | ||
sudo apt install -y texlive-latex-extra texlive-fonts-extra | ||
git clone --depth 1 https://github.com/gap-packages/AutoDoc.git | ||
git clone --depth 1 https://github.com/homalg-project/homalg_project.git | ||
# set SOURCE_DATE_EPOCH for reproducible PDFs | ||
export SOURCE_DATE_EPOCH=0 | ||
TERM=dumb make -C ArangoDBInterface -j $(nproc) --output-sync doc | ||
#TERM=dumb make -C ArangoDBInterface -j $(nproc) --output-sync ci-test | ||
#cp ./ArangoDBInterface/.codecov.yml ./ | ||
#curl -s https://codecov.io/bash | bash | ||
git config --global user.name "Bot" | ||
git config --global user.email "empty" | ||
cd ArangoDBInterface | ||
CUR_SHA=$(git rev-parse --verify HEAD) | ||
if [ "${{ matrix.image }}" = "gapsystem/gap-docker" ] && [ "$CUR_SHA" = "$(git rev-parse origin/master)" ] && [ $(dirname "$GITHUB_REPOSITORY") = "homalg-project" ]; then \ | ||
git worktree add gh-pages/ gh-pages || (echo "There was an error. Make sure there is a branch named 'gh-pages'. See https://github.com/homalg-project/PackageJanitor#error-there-was-an-error-make-sure-there-is-a-branch-named-gh-pages"; exit 1); \ | ||
git checkout master; \ | ||
LANG=C.UTF-8 ./make_dist.sh --token "${{ secrets.GITHUB_TOKEN }}"; \ | ||
else \ | ||
echo "Not making a release."; \ | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
#!/bin/sh | ||
rm -f *.{aux,lab,log,dvi,ps,pdf,bbl,ilg,ind,idx,out,html,tex,pnr,txt,blg,toc,six,brf,xml,xml.bib,css,js} ../maketest.g ../VERSION ../public_html.version | ||
|
||
rm -f *.{aux,bbl,blg,brf,css,html,idx,ilg,ind,js,lab,log,out,pdf,pnr,six,tex,toc,txt,xml,xml.bib} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
#/bin/bash | ||
#!/bin/bash | ||
|
||
base_dir="$PWD" | ||
set -e | ||
|
||
./release --srcdir ${base_dir} --webdir ${base_dir}/gh-pages --update-file ${base_dir}/gh-pages/update.g | ||
|
||
echo "Please push website now" | ||
|
||
exit 0 | ||
./release-gap-package --skip-existing-release $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,32 @@ | ||
# | ||
# ArangoDBInterface: An interface to ArangoDB | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ArangoDBInterface: A GAP interface to ArangoDB | ||
# | ||
# This file is a script which compiles the package manual. | ||
# | ||
if fail = LoadPackage("AutoDoc", "2019.05.20") then | ||
if fail = LoadPackage( "AutoDoc", "2019.05.20" ) then | ||
|
||
Error("AutoDoc version 2019.05.20 or newer is required."); | ||
Error( "AutoDoc version 2019.05.20 or newer is required." ); | ||
|
||
fi; | ||
|
||
AutoDoc( rec( | ||
scaffold := rec( | ||
entities := [ "homalg", "CAP" ], | ||
), | ||
autodoc := rec( | ||
files := [ "doc/Doc.autodoc" ], | ||
scan_dirs := [ "doc", "gap", "examples", "examples/doc" ], | ||
), | ||
extract_examples := rec( | ||
units := "Single", | ||
), | ||
gapdoc := rec( | ||
LaTeXOptions := rec( | ||
LateExtraPreamble := """ | ||
\usepackage{mathtools} | ||
""", | ||
), | ||
), | ||
scaffold := rec( | ||
entities := [ "homalg", "CAP" ], | ||
), | ||
extract_examples := rec( units := "Single" ), | ||
) ); | ||
|
||
QUIT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# SPDX-License-Identifier: GPL-2.0-or-later | ||
# ArangoDBInterface: A GAP interface to ArangoDB | ||
# | ||
# This file is a script which compiles the package manual and prints overfull hbox warnings. | ||
# | ||
if fail = LoadPackage( "AutoDoc", "2019.05.20" ) then | ||
|
||
Error( "AutoDoc version 2019.05.20 or newer is required." ); | ||
|
||
fi; | ||
|
||
AutoDoc( rec( | ||
dir := "doc_tmp/", | ||
autodoc := rec( | ||
files := [ "doc/Doc.autodoc" ], | ||
scan_dirs := [ "doc", "gap", "examples", "examples/doc" ], | ||
), | ||
gapdoc := rec( | ||
LaTeXOptions := rec( | ||
LateExtraPreamble := """ | ||
\usepackage{mathtools} | ||
% Many thanks to https://tex.stackexchange.com/questions/22466/how-to-convince-fancyvrb-to-give-overfull-warnings/534486#534486 | ||
\makeatletter | ||
\def\FV@ListProcessLine#1{% | ||
\hbox to \hsize{% | ||
\kern\leftmargin | ||
\hbox to \linewidth{% | ||
\FV@LeftListNumber | ||
\FV@LeftListFrame | ||
\FancyVerbFormatLine{#1}\hfil % change \hss to \hfil | ||
\FV@RightListFrame | ||
\FV@RightListNumber}% | ||
\hss}} | ||
\makeatother | ||
""", | ||
), | ||
), | ||
scaffold := rec( | ||
entities := [ "homalg", "CAP" ], | ||
), | ||
) ); | ||
|
||
QUIT; |
Oops, something went wrong.