Skip to content
Snippets Groups Projects
Commit 6bf89972 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Octave packaging.

parent 4ce66c58
No related branches found
No related tags found
No related merge requests found
Pipeline #10108 passed
# General # General
build/ build/
include/libcaosdbConfig.h *.tar.gz
# Caches
.*cache
# CMake # CMake
CMakeLists.txt.user CMakeLists.txt.user
......
...@@ -32,7 +32,12 @@ doc: ...@@ -32,7 +32,12 @@ doc:
.PHONY: style .PHONY: style
style: style:
mh_style --octave src mh_style --octave src
mh_style --octave pkg
.PHONY: test .PHONY: test
test: test:
cd src && octave Run_Test.m cd src && octave Run_Test.m
.PHONY: pkg
pkg:
tar -czf caosdb.tar.gz --exclude-from=.gitignore pkg
# -*- mode:conf; -*-
# See https://florianschanda.github.io/miss_hit/style_checker.html
line_length: 100
regex_function_name: "[a-z]+(_[a-z]+)*"
suppress_rule: "whitespace_comments"
tab_width: 2
caosdb-octavelib, an Octave library for CaosDB. IndiScale GmbH (2021)
% (C) Copyright 2021 IndiScale GmbH <info@indiscale.com>
% (C) Copyright 2021 Daniel Hornung <d.hornung@indiscale.com>
%
% This file is a part of the CaosDB Project. % This file is a part of the CaosDB Project.
% %
% Copyright (C) 2021 IndiScale GmbH <info@indiscale.com>
% Copyright (C) 2021 Daniel Hornung <d.hornung@indiscale.com>
%
% This program is free software: you can redistribute it and/or modify % This program is free software: you can redistribute it and/or modify
% it under the terms of the GNU Affero General Public License as % it under the terms of the GNU Affero General Public License as
% published by the Free Software Foundation, either version 3 of the % published by the Free Software Foundation, either version 3 of the
...@@ -15,12 +15,3 @@ ...@@ -15,12 +15,3 @@
% %
% You should have received a copy of the GNU Affero General Public License % You should have received a copy of the GNU Affero General Public License
% along with this program. If not, see <https://www.gnu.org/licenses/>. % along with this program. If not, see <https://www.gnu.org/licenses/>.
%% Example file with dummy code from https://www.gnu.org/software/octave/
x = -10:0.1:10; % Create an evenly-spaced vector from -10..10
y = sin(x); % y is also a vector
plot (x, y);
title ("Simple 2-D Plot");
xlabel ("x");
ylabel ("sin (x)");
../../CHANGELOG.md
\ No newline at end of file
# See https://octave.org/doc/interpreter/The-DESCRIPTION-File.html
Name: caosdb
Version: 0.1.0
Date: 2021-07-09
Author: Daniel Hornung <d.hornung@indiscale.com>
Maintainer: Daniel Hornung <d.hornung@indiscale.com>
Title: Octave and Matlab library for CaosDB
Description: This package contains utility functions to interact with CaosDB.
License: AGPLv3
Categories: data management
Url: https://gitlab.com/caosdb/caosdb-octavelib
BuildRequires: libcaosdb
../../LICENSE.md
\ No newline at end of file
...@@ -19,5 +19,5 @@ ...@@ -19,5 +19,5 @@
% ------------------------------------------------------------------------ % ------------------------------------------------------------------------
% Build the HTML documentation. % Build the HTML documentation.
pkg load generate_doc pkg load generate_doc;
generate_package_html("caosdb", "_build_octave/") generate_package_html("caosdb", "_build_octave/");
File moved
File moved
File moved
File moved
#!/bin/bash
echo "Nothing is implemented yet."
# See https://octave.org/doc/interpreter/Creating-Packages.html
...@@ -19,12 +19,12 @@ ...@@ -19,12 +19,12 @@
% ------------------------------------------------------------------------ % ------------------------------------------------------------------------
% Run the tests, exit with their value. % Run the tests, exit with their value.
addpath("dummy"); addpath('../pkg/inst/');
[n, nmax, nxfail, nbug, nskip, nrtskip, nregression] = ... [n, nmax, nxfail, nbug, nskip, nrtskip, nregression] = ...
test("some_function.m", "verbose"); test('some_function.m', 'verbose');
disp(["Passed " num2str(n) " out of " num2str(nmax) " tests."]); disp(['Passed ' num2str(n) ' out of ' num2str(nmax) ' tests.']);
if n == nmax if n == nmax
exit(0); exit(0);
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment