Ludovic Courtès
eb9521d1b4
examples: Add 'random-jobs'.
...
* examples/random-jobs.scm, examples/random.scm: New files.
* Makefile.am (nobase_dist_pkgdata_DATA): Add them.
2018-01-29 22:42:12 +01:00
Ludovic Courtès
77769c29e7
http: Use our own 'fiberized' web server backend.
...
* src/web/server/fiberized.scm: New file.
* Makefile.am (dist_pkgmodule_DATA): Add it.
* src/cuirass/http.scm (run-cuirass-server): Use it.
2018-01-25 11:54:40 +01:00
Ludovic Courtès
70f21349bd
Add (cuirass logging) module.
...
* src/cuirass/logging.scm: New file.
* Makefile.am (dist_pkgmodule_DATA): Add it.
* src/cuirass/base.scm (handle-build-event): Use 'log-message' instead
of 'log'.
2018-01-22 13:29:55 +01:00
Ludovic Courtès
6c163e4916
build: Update 'test-driver.scm' from Guix.
...
* build-aux/test-driver.scm: Update from current Guix.
* Makefile.am (SCM_LOG_DRIVER): Add -L and -e flags.
2018-01-07 23:59:30 +01:00
Mathieu Othacehe
4666142ca5
repo: Remove dead code.
...
* Makefile.am (dist_pkgmodule_DATA): Remove repo.scm,
(TESTS): Remove repo.scm.
* build-aux/guix.scm (package)[disable-repo-tests]: Remove phase.
* src/cuirass/repo.scm: Remove.
* tests/repo.scm: Remove.
2017-07-06 09:20:52 +02:00
Ludovic Courtès
870e8d6ad3
build: Fix load-path/compile-path confusion.
...
This is a followup to b4400bc989
.
* Makefile.am (nodist_pkgmodule_DATA): New variable.
(nodist_pkgobject_DATA): Remove config.scm.
(do_subst): Use $(guileobjectdir).
2017-05-10 16:58:50 +02:00
Ludovic Courtès
b4400bc989
build: Install .go files to $(libdir)/guile.
...
* Makefile.am (guileobjectdir): New variable.
(nodist_guilesite_DATA): Rename to...
(nodist_guileobject_DATA): ... this.
(pkgobjectdir): New variable.
(nodist_pkgmodule_DATA): Rename to...
(nodist_pkgobject_DATA): ... this.
2017-05-10 16:42:05 +02:00
Ludovic Courtès
ece0773ca8
build: Prefer building with Guile 2.2.
...
* Makefile.am (guilesitedir): Append @GUILE_EFFECTIVE_VERSION@.
* configure.ac: Use 'GUILE_PKG', and pass "2.2" first.
2017-05-10 16:32:26 +02:00
Mathieu Lirzin
3adf32e742
build: Don't generate ".version" since it has no use.
...
* Makefile.am (.version): Remove target.
(EXTRA_DIST): Adapt.
(BUILT_SOURCES): Likewise.
* build-aux/guix.scm (git-version-gen): Call 'git-version-gen' with
'.tarball-version'.
* .gitignore: Update.
2017-01-23 02:41:53 +01:00
Mathieu Lirzin
8988070725
maint: Fix mistake in copying permission statement.
...
This was mistakenly added in commit 05e5495e8f
.
* Makefile.am: Declare GPLv3+ instead of GPLv2+.
* configure.ac: Likewise.
2017-01-09 00:41:13 +01:00
Mathieu Lirzin
b29820b8bb
build: Reformat assignments.
...
* Makefile.am (guilesitedir, pkgmoduledir, BUILT_SOURCES): Add whitespaces
around '='.
2017-01-08 18:06:02 +01:00
Mathieu Lirzin
4ac708b0f6
build: Do not require "build-aux/guix.scm".
...
When building Cuirass with 'guix build -f build-aux/guix.scm' we don't want to
add "build-aux/guix.scm" in the repository snapshot since it is considered as
metadata. As a consequence we can't make 'autoconf' require it.
* configure.ac (AC_REQUIRE_AUX_FILE): Remove "build-aux/guix.scm".
* Makefile.am (EXTRA_DIST): Only distribute it.
2016-12-29 12:00:18 +01:00
Mathieu Lirzin
b32791d4bd
build: Fix typo "the" => "they".
...
* Makefile.am <Generated files>: Fix typo "the" => "they".
2016-12-28 19:12:29 +01:00
Mathieu Lirzin
c26ffda7d6
build: Use portable substitution references.
...
* Makefile.am (nodist_guilesite_DATA, nodist_pkgmodule_DATA, CLEANFILES): Use
portable substitution references.
2016-12-28 19:12:29 +01:00
Mathieu Lirzin
17dbfe679d
maint: Generate version number.
...
* build-aux/git-version-gen: New script.
* configure.ac (AC_INIT): Use it.
(AC_REQUIRE_AUX_FILE): Distribute it.
* Makefile.am (.version): New target.
(BUILT_SOURCES, EXTRA_DIST): Add it.
(dist-hook): Generate ".tarball-version".
* .gitignore: Update.
2016-12-28 18:51:39 +01:00
Mathieu Lirzin
57e10c6056
build: Set Guile load paths in 'pre-inst-env'.
...
This reverts most of 4f0d665746
. The load paths
are still hard coded after installation, however 'pre-inst-env' wrapper is
used for defining them in the local build environment. This is more
convenient for running the tests manually or launching a Guile REPL with all
the Cuirass modules accessible.
* build-aux/pre-inst-env.in (GUILE_LOAD_PATH, GUILE_LOAD_COMPILED_PATH): New
variables.
* bin/cuirass.in: Comment Guile load paths.
* Makefile.am (local_load_path, local_load_compiled_path): Delete.
(AM_TESTS_ENVIRONMENT): Don't set Guile load paths.
(do_subst): Use install directories for Guile load paths.
(install-exec-hook): Uncomment 'cuirass' hard coded load paths.
2016-12-28 18:19:03 +01:00
Mathieu Lirzin
16aec469d4
repo: Add <repo> record datatype.
...
* src/cuirass/utils.scm (call-with-temporary-directory): New procedure.
* src/cuirass/repo.scm: Use it. New file.
* tests/repo.scm: New tests.
* Makefile.am (dist_pkgmodule_DATA, TESTS): Add them.
2016-12-28 18:18:37 +01:00
Mathieu Lirzin
041b56c480
build: Install the examples.
...
* Makefile.am (EXTRA_DIST): Move examples to ...
(nobase_dist_pkgdata_DATA): ... here. New variable.
2016-12-16 13:39:51 +01:00
Mathieu Lirzin
e9e1ce8e14
maint: Move examples from 'tests' to 'examples' directory.
...
* examples/gnu-system.scm: Moved from 'tests' directory.
* examples/guix-jobs.scm: Likewise.
* examples/guix-track-git.scm: Likewise.
* examples/hello-git.scm: Likewise.
* examples/hello-singleton.scm: Likewise.
* examples/hello-subset.scm: Likewise.
* Makefile.am (EXTRA_DIST): Adapt.
* README <Example>: Likewise.
2016-12-16 13:20:49 +01:00
Mathieu Lirzin
cbdb59af8e
doc: Add Cuirass manual.
...
* doc/cuirass.texi: New file.
* doc/fdl-1.3.texi: Likewise.
* Makefile.am (info_TEXINFOS, doc_cuirass_TEXINFOS): New variables.
* dir-locals.el: Use the American dictionary for Texinfo mode.
* .gitignore: Update.
2016-12-04 22:31:03 +01:00
Mathieu Lirzin
7248c0038f
build: Unquote local load paths.
...
* Makefile.am (local_load_path, local_load_compiled_path): Remove quotes that
were expanded in the generated files.
2016-11-29 18:49:43 +01:00
Mathieu Lirzin
81ff83354e
build: Remove duplicate sed expression.
...
* Makefile.am (do_subst): Remove duplicate line.
2016-11-17 01:19:05 +01:00
Mathieu Lirzin
a948f556eb
build: Use BUILT_SOURCES to avoid recompilation.
...
Before that, modifying 'src/cuirass/config.scm' was triggering the
recompilation of all modules which was unnecessary.
* Makefile.am (go_files, $(go_files)): Delete.
(BUILT_SOURCES): New variable.
2016-11-17 01:19:04 +01:00
Mathieu Lirzin
05e5495e8f
maint: Add copyright notices for the build system.
...
* configure.ac: Add copyright notice.
* Makefile.am: Likewise.
2016-11-12 17:58:17 +01:00
Mathieu Lirzin
4f0d665746
cuirass: Hard code Guile load paths.
...
* configure.ac (bin/cuirass, bin/evaluate): Let 'make' generate them.
* bin/cuirass.in: Hard code load paths to find Cuirass modules.
* Makefile.am (do_subst): Update substitution.
(bin/cuirass, bin/evaluate): New rules.
(EXTRA_DIST): Distribute 'bin/cuirass.in' and 'bin/evaluate.in'.
(MOSTLYCLEANFILES): Add '$(bin_SCRIPTS)'.
(install-exec-hook): New target.
(local_load_path, local_load_compiled_path): New variables.
(AM_TESTS_ENVIRONMENT): Set Guile load paths.
* build-aux/pre-inst-env.in: Don't modify Guile load paths.
2016-11-12 17:49:20 +01:00
Mathieu Lirzin
1e5012ca80
build: Let 'make' generate 'src/cuirass/config.scm'.
...
* Makefile.am (src/cuirass/config.scm, $(go_files)): New targets.
(do_subst, generate_file, go_files): New variables.
(EXTRA_DIST): Distribute 'src/cuirass/config.scm.in'.
(DISTCLEANFILES): Rename to ...
(MOSTLYCLEANFILES): ... this.
* configure.ac (AC_CONFIG_FILES): Remove 'src/cuirass/config.scm'.
(@expanded_datadir@, @expanded_localstatedir@): Delete.
(AC_PROG_MKDIR_P, AC_PROG_SED): Use them.
* src/cuirass/config.scm (%datadir): Set it to $(localstatedir).
(%localstatdir): Set it to $(datadir).
2016-11-12 17:07:57 +01:00
Mathieu Lirzin
c9223b6d29
build: Add 'bootstrap' script.
...
* bootstrap: New file.
* Makefile.am (EXTRA_DIST): Add it.
2016-08-02 19:04:53 +02:00
Mathieu Lirzin
a6849d4a45
Add (cuirass) module.
...
* src/cuirass.scm: New file.
* Makefile.am (guilesitedir, dist_guilesite_DATA)
(nodist_guilesite_DATA): New variables.
(pkgmoduledir): Refer to 'guilesitedir'.
(CLEANFILES): Add 'nodist_guilesite_DATA'.
* bin/cuirass.in: Use (cuirass) module.
* bin/evaluate.in: Likewise.
2016-08-02 18:17:20 +02:00
Mathieu Lirzin
651b8bbcf9
Add (cuirass http) module.
...
* src/cuirass/http.scm: New file.
* tests/http.scm: Likewise.
* Makefile.am (dist_pkgmodule_DATA, TESTS): Add them.
* configure.ac: Check for (json) module.
2016-07-31 01:07:00 +02:00
Mathieu Lirzin
5c0a2b5779
build: Fix variable reference in comment.
...
* Makefile.am (.scm.go): Replace $(cuirassmoduledir) by
$(pkgmoduledir).
2016-07-27 14:17:10 +02:00
Mathieu Lirzin
f97b24c29e
tests: Add 'hello-singleton' specification example.
...
* tests/hello-singleton.scm: New file.
* Makefile.am (EXTRA_DIST): Add it.
2016-07-27 14:16:57 +02:00
Mathieu Lirzin
adc624c75a
build: Add 'sql-check' rule.
2016-07-25 02:12:39 +02:00
Mathieu Lirzin
fb986fa8fe
build: Define 'pkgmoduledir' in Makefile.am.
2016-07-25 02:12:39 +02:00
Mathieu Lirzin
46c9d432ea
database: Use an external SQL schema.
2016-07-25 02:12:39 +02:00
Mathieu Lirzin
89b1f89cfc
Move '%program-name' to (cuirass ui) module.
2016-07-25 02:12:37 +02:00
Mathieu Lirzin
0808ab3ecd
Remove unnecessary (cuirass job) module.
2016-07-13 14:16:36 +02:00
Mathieu Lirzin
53c12be409
Evaluate derivations in a separate process.
...
This fixes a bug where different Guix branches gave the same
derivations.
2016-07-13 14:07:24 +02:00
Mathieu Lirzin
92f5d0dfe4
Add guix-jobs.scm specification file.
2016-07-04 17:01:58 +02:00
Mathieu Lirzin
fe30eb7e82
Add 'basic.sh' test.
2016-07-03 16:50:27 +02:00
Mathieu Lirzin
88e72887a0
Add test for 'with-directory-excursion'.
2016-07-02 03:35:19 +02:00
Mathieu Lirzin
2bace10106
Add (cuirass utils) module.
...
Move 'with-directory-excursion' here.
2016-07-02 03:13:29 +02:00
Mathieu Lirzin
b24541e604
Add (cuirass database) module.
2016-06-26 16:59:26 +02:00
Mathieu Lirzin
ecffeb7536
job: Add <job> record type.
...
* src/cuirass/job.scm: New file.
* Makefile.am (dist_pkgmodule_DATA): Add it.
* bin/cuirass.in (evaluate, build-packages): Use it.
2016-06-10 23:39:27 +02:00
Mathieu Lirzin
87a79ae33d
cuirass: Add command line options.
...
* bin/cuirass.in (show-help, %options): new variables.
(main): Adapt.
* src/cuirass/ui.scm: New file.
* Makefile.am (dist_pkgmodule_DATA): Add it.
2016-06-10 23:39:01 +02:00
Mathieu Lirzin
8fb2983dce
build: Generate config.scm at configure time.
...
* src/cuirass/config.scm.in: New file.
* configure.ac (AC_CONFIG_FILES): Add 'src/cuirass/config.scm'.
* Makefile.am (nodist_pkgmodule_DATA, CLEANFILES, DISTCLEANFILES):
Update.
* .gitignore: Likewise.
2016-06-10 23:38:40 +02:00
Mathieu Lirzin
9d5fda76bb
Initial commit.
2016-05-29 19:53:17 +02:00