Commit Graph

363 Commits

Author SHA1 Message Date
Tommaso Pecorella
2d150b0f6a ci: add gcc-11 jobs 2021-05-14 17:52:02 +00:00
Tommaso Pecorella
0bc6512941 ci: update weekly jobs
- remove gcc<7, ubuntu 16.04
- add ubuntu 21.04, fedora 34
2021-05-13 22:10:57 +00:00
Eduardo Almeida
6aa2d3238e Update Python scripts to the safer "with open() as" Python syntax 2021-05-11 23:38:30 +00:00
Tommaso Pecorella
de8505ce2d ci: doc - fix ImageMagik conversion policy 2021-05-11 21:03:26 +00:00
Tommaso Pecorella
5beeda40a2 ci: switch to archlinux for documentation stage 2021-05-09 21:25:01 +00:00
Tommaso Pecorella
963991426f ci: fix doxygen script (7) 2021-05-03 23:20:09 +00:00
Tommaso Pecorella
5a22bf1f05 ci: fix doxygen script (6) 2021-05-03 17:48:10 +00:00
Tommaso Pecorella
c419271ec9 ci: fix doxygen script (5) 2021-05-03 17:24:07 +00:00
Tommaso Pecorella
63372b26d9 ci: fix doxygen script (4) 2021-05-03 14:42:18 +00:00
Tommaso Pecorella
5c44b41a56 ci: fix doxygen script (3) 2021-05-03 14:06:36 +00:00
Tommaso Pecorella
e2b73619ab ci: fix doxygen script (2) 2021-05-03 13:16:41 +00:00
Tommaso Pecorella
ba5835e497 ci: fix doxygen script 2021-05-03 12:59:47 +00:00
Peter Barnes
778f604511 ci: (fixes #207) doxy use warnings report, filtered to files touched in commit 2021-05-03 02:37:51 +02:00
Tommaso Pecorella
d7a08785d7 CI: update archlinux image 2021-04-29 20:45:59 +00:00
Alexander Krotov
7840671edf ci: add "ccache-" prefix to ccache cache
To avoid conflicts in case we add more caches for other things.
2021-04-15 17:34:09 +03:00
Alexander Krotov
3b54a8af17 ci: share ccache directory between branches 2021-04-15 14:18:35 +00:00
Tommaso Pecorella
fe26cf8b46 gitlab: move doxygen buildbot to private runner 2021-03-12 20:42:33 +00:00
Tommaso Pecorella
b119de63f2 gitlab: run daily-debug on a private server 2021-02-12 17:36:24 +00:00
Tommaso Pecorella
ab04f29830 gitlab: fix CI test script 2021-02-09 20:26:44 +00:00
Tommaso Pecorella
f158e46fa7 gitlab: (partial fix to #330) run CI tests in optimized and release only. 2021-02-06 02:44:06 +00:00
Tommaso Pecorella
6b6e630165 gitlab: (partial fix to #330) add key to cache (2) 2021-02-06 00:20:27 +00:00
Tommaso Pecorella
c16fce9634 gitlab: (partial fix to #330) add key to cache 2021-02-05 09:36:18 +00:00
Tom Henderson
e74c32d529 Update Python unit tests (update API, add copyright) 2021-01-19 18:15:44 -08:00
Tommaso Pecorella
796dee50e7 gitlab: add daily valgrind test 2021-01-02 18:33:25 +00:00
Tommaso Pecorella
5368b58278 gitlab: (fixes #325) update CI scripts 2020-12-30 21:43:39 +00:00
Mathew Bielejeski
2cea1e4ccd core: (merges !434) Length class to support length values with units 2020-12-02 20:05:29 -08:00
Jared Dulmage
d244597a2b Documentation, better conformance to AttributeChecker conventions
Both PairChecker and AttributeContainerChecker factory functions
modified to return more generic AttributeCheckers similar to other
attribute types. By removing the templated return type, the internal
templated classes become necessary to define checkers for each
templated type. This follows the pattern in PointerChecker and
ObjectContainerChecker.

The pair-value-test-suite and attribute-container-test-suite were
amended to account for the changes in the checker factories. All
tests continue to pass.

Plenty of documentation was added to PairValue and AttributeContainerValue
and I also removed some dead code.
2020-09-20 15:33:38 -07:00
Jared Dulmage
c8f2bf250e Addressed comments for nsnam/ns-3-dev MR 91
- Removed unnecessary files src/core/model/{attribute-container,pair}.cc
- Removed 'explicit' modifier to PairChecker
- Modified output stream operator for PairValue; update PairValueTestCase
- Updated src/core/wscript to latest master
- Added Pair and AttributeContainer to utils/print-introspected-doxygen.cc
2020-09-20 14:52:02 -07:00
Natale Patriciello
9cdaa502f7 ci-cd: Fixed weekly schedules, added test.py to per-commit jobs 2020-09-01 10:06:34 +02:00
Natale Patriciello
804d16d1b7 ci-cd: Don't execute per-commit jobs with a binding generation schedule 2020-08-28 10:42:23 +02:00
Natale Patriciello
c261cb01cc ci-cd: Generate python bindings from Gitlab 2020-08-28 10:36:10 +02:00
Natale Patriciello
c8a59fd14b ci/cd: Added linux tag to pick the correct runner 2020-08-27 15:46:45 +02:00
Natale Patriciello
8a682e1497 ci/cd: Enabled weekly test with tag nsnam
The jobs will be submitted (hopefully) to the nsnam-tagged servers.
2020-08-26 19:20:19 +02:00
Peter Barnes
c7c2e76d41 core: (fixes #247) unlimited arguments in MakeEnumChecker 2020-08-24 18:50:07 +00:00
Mathew Bielejeski
5d13b2b80c build: Create version.cache file with dummy data when git tags are absent
* Change version tag and ClosestTag values to be ns-3.xx
* Fix string values to have the proper format
* Allow check-version to proceed even if git task is not present
* Remove git package requirement from Docker containers
* Create git_ns3_version_info task only when HAVE_NS3_REPO is defined
* Change tag glob from ns-3* to ns-3.[0-9]*
* Use version tag to make output consistent with waf --check-version
2020-08-18 15:39:34 -07:00
Mathew Bielejeski
941a67fca7 Adjust GitLab.com CI configuration for build version feature
* Add a git tag to the tip of the branch before building
* Install git package before building
* Update ubuntu and fedora builds to install git package
2020-08-14 14:14:37 -07:00
Tom Henderson
bbcd692716 utils: Replace check-style.py parameter with backward-compatible alias
Updates commit 063d86c09 with fix suggested in #230
2020-06-27 11:08:51 -07:00
Tom Henderson
270766a631 utils: Make create-module.py work for Python 3.5 2020-06-25 08:03:39 -07:00
Sébastien Deronne
b0a4444e76 utils: Use CommandLine cmd (__FILE__) instead of COMMANDLINE macro in newly generated module 2020-06-24 20:55:58 +00:00
Steven Smith
dded72e02e build: (fixes #217) Guard compilation of example used as a test
* Added documentation to ExampleAsTestSuite on the need for this guarding
* Updated with Peter's patch for examples-as-test placeholders in wscripts
2020-06-08 09:35:50 -07:00
Natale Patriciello
6b830f9457 ci/cd: Clang10 repo only has python3 packages. Remove python2 packages from the installed list 2020-06-08 10:59:22 +02:00
Natale Patriciello
f8e8ade4df ci/cd: Disabled debug/release tests, doing them only in optimized mode 2020-06-08 10:09:32 +02:00
Natale Patriciello
2cd9029757 ci/cd: Added Clang 10 compile test 2020-06-08 10:09:13 +02:00
Peter D. Barnes, Jr
a75ca74913 Revert "doc: doc/doxygen.warnings.report.sh exit status"
This reverts commit 5164a46b9e.
2020-05-27 15:03:59 -07:00
Peter Barnes
5164a46b9e doc: doc/doxygen.warnings.report.sh exit status
This amends the script to return a tailored exit status:

With filter-in options (-m, -f) the exit status records if any warnings
were found in the listed module or files.

Without any filter-in options the exit status records whether *any*
Doxygen warnings were found.
2020-05-27 20:59:06 +00:00
Peter D. Barnes, Jr
9ddd31c6f9 More flexible create-module.py script
Changed the default creation directory from src/ to contrib/
  Moved create-modules.py from src/ to utils/

Added two new optional command line arguments: --project and --use-src-dir
--project specifies a directory name or path under which the new modules
will be created.
--use-src-dir directs the script to create new modules in the src
directory instead of contrib.  This argument cannot be combined
with --project.

Updated contrib/wscript to search for modules at
arbitrary depths instead of just the child directories under
contrib.

Assume the following directory structure:
contrib/
  project1/
    module1/
      wscript
    module2/
      wscript
  project2/
    sub_project1/
      	module3/
        	wscript
      	module4/
        	wscript
    sub_project2/
      	module5/
        	wscript
      	module6/
        	wscript
    data/
  module7/
    wscript

waf configure will discover the following modules under contrib:
project1/module1
project1/module2
project2/sub_project1/module3
project2/sub_project1/module4
project2/sub_project2/module5
project2/sub_project2/module6
module7
2020-05-20 13:55:28 -07:00
Peter D. Barnes, Jr
c9769dc400 core: refactor reverse ordering in calendar scheduler
Refactor to clarify the core algorithms and isolate the
forward/reverse differences to one section.

This also lets the insertion order to be set by Attribute.

Benchmarking this appears to be marginally faster than
Alexander Krotov's original version.  It's not clear why;
should be marginally slower.
2020-05-12 12:05:01 -07:00
Alexander Krotov
1f6a710dbd core: Port calendar scheduler improvement from NS-2.
It reverses the order of insertion sort in buckets.
2020-05-12 12:05:01 -07:00
Natale Patriciello
9539cd04d5 ci/cd: Disable Fedora 30 due to missing ipython package
Error message:

$ dnf install gcc gcc-c++ python python-devel ccache gsl gsl-devel libgcrypt gtk3 gtk3-devel sqlite sqlite-devel libxml2 libxml2-devel openmpi openmpi-devel boost-devel pygobject3-devel python3-gobject gobject-introspection-devel goocanvas2-devel graphviz-devel graphviz ipython --assumeyes
Fedora Modular 30 - x86_64                      3.2 MB/s | 2.7 MB     00:00
Fedora Modular 30 - x86_64 - Updates            4.8 MB/s | 4.1 MB     00:00
Fedora 30 - x86_64 - Updates                    9.0 MB/s |  24 MB     00:02
Fedora 30 - x86_64                              9.9 MB/s |  70 MB     00:07
Package libgcrypt-1.8.5-1.fc30.x86_64 is already installed.
Package libxml2-2.9.9-2.fc30.x86_64 is already installed.
No match for argument: ipython
Error: Unable to find a match: ipython

From https://gitlab.com/nsnam/ns-3-dev/-/jobs/535839400

The funny thing is that the same line works for Fedora 29 and 31.
2020-05-05 10:03:15 +02:00
Natale Patriciello
60f5d05a95 ci/cd: Fix ubuntu TZDATA installation
Closes #184
2020-05-05 10:02:55 +02:00