Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update actions CI #139

Merged
merged 24 commits into from
Aug 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
246aac6
Update actions CI
chapulina Jul 20, 2020
c0e2bc2
Use master
chapulina Jul 20, 2020
3d45b9a
Merge branch 'ign-math6' into chapulina/actions_groups
chapulina Jul 20, 2020
4f9ec46
Use packages.apt
chapulina Jul 21, 2020
7bbd2e8
Merge branch 'chapulina/actions_groups' of github.com:ignitionrobotic…
chapulina Jul 21, 2020
f5e760f
use test branch
chapulina Jul 21, 2020
40d24fd
typo
chapulina Jul 21, 2020
e971beb
Move packages file
chapulina Jul 27, 2020
387427f
Merge branch 'ign-math6' into chapulina/actions_groups
chapulina Jul 27, 2020
b6beb6f
more updates
chapulina Jul 29, 2020
334da21
Merge branch 'chapulina/actions_groups' of github.com:ignitionrobotic…
chapulina Jul 29, 2020
ec5dcac
Merge branch 'ign-math6' into chapulina/actions_groups
chapulina Jul 29, 2020
cfa61e8
Focal
chapulina Jul 29, 2020
aa6eb32
push is enough
chapulina Jul 29, 2020
78b665a
ci master
chapulina Jul 30, 2020
508d571
satisfy cppcheck when possible
chapulina Jul 31, 2020
4ca0a7d
double
chapulina Jul 31, 2020
1f19a9c
Merge branch 'ign-math6' into chapulina/actions_groups
chapulina Jul 31, 2020
785e941
a real fix for a change
chapulina Jul 31, 2020
21a324a
Merge branch 'chapulina/actions_groups' of github.com:ignitionrobotic…
chapulina Jul 31, 2020
fea7073
new repo name
chapulina Jul 31, 2020
4321f62
Merge branch 'ign-math6' into chapulina/actions_groups
chapulina Aug 1, 2020
475d6b4
use focal branch
chapulina Aug 1, 2020
d827244
Merge branch 'ign-math6' into chapulina/actions_groups
mjcarroll Aug 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

set -x

BUILD_DIR=`pwd`

# Install
make install

Expand All @@ -12,3 +14,5 @@ cd build
cmake ..
make
./graph_example

cd $BUILD_DIR
4 changes: 4 additions & 0 deletions .github/ci/packages.apt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
libeigen3-dev
libignition-cmake2-dev
ruby-dev
swig
18 changes: 0 additions & 18 deletions .github/workflows/ci-bionic.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Ubuntu CI

on: [push]

jobs:
bionic-ci:
runs-on: ubuntu-latest
name: Ubuntu Bionic CI
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compile and test
id: ci
uses: ignition-tooling/action-ignition-ci@master
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
focal-ci:
runs-on: ubuntu-latest
name: Ubuntu Focal CI
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Compile and test
id: ci
uses: ignition-tooling/action-ignition-ci@focal
with:
codecov-token: ${{ secrets.CODECOV_TOKEN }}
6 changes: 3 additions & 3 deletions include/ignition/math/Filter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace ignition
}

// Documentation Inherited.
public: virtual void Fc(double _fc, double _fs)
public: virtual void Fc(double _fc, double _fs) override
{
b1 = exp(-2.0 * IGN_PI * _fc / _fs);
a0 = 1.0 - b1;
Expand Down Expand Up @@ -168,7 +168,7 @@ namespace ignition
}

// Documentation Inherited.
public: void Fc(double _fc, double _fs)
public: void Fc(double _fc, double _fs) override
{
this->Fc(_fc, _fs, 0.5);
}
Expand All @@ -191,7 +191,7 @@ namespace ignition

/// \brief Set the current filter's output.
/// \param[in] _val New filter's output.
public: virtual void Set(const T &_val)
public: virtual void Set(const T &_val) override
{
this->y0 = this->y1 = this->y2 = this->x1 = this->x2 = _val;
}
Expand Down
1 change: 0 additions & 1 deletion include/ignition/math/MassMatrix3.hh
Original file line number Diff line number Diff line change
Expand Up @@ -984,7 +984,6 @@ namespace ignition
+ std::pow(cos(phi11c.Radian()) - cos(phi12c.Radian()), 2);
if (errc < err)
{
err = errc;
phi1 = phi11c.Radian();
signsPhi23.Set(-1, -1);
}
Expand Down
36 changes: 18 additions & 18 deletions include/ignition/math/SignalStats.hh
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ namespace ignition
class IGNITION_MATH_VISIBLE SignalMaximum : public SignalStatistic
{
// Documentation inherited.
public: virtual double Value() const;
public: virtual double Value() const override;

/// \brief Get a short version of the name of this statistical measure.
/// \return "max"
public: virtual std::string ShortName() const;
public: virtual std::string ShortName() const override;

// Documentation inherited.
public: virtual void InsertData(const double _data);
public: virtual void InsertData(const double _data) override;
};
/// \}

Expand All @@ -101,14 +101,14 @@ namespace ignition
class IGNITION_MATH_VISIBLE SignalMean : public SignalStatistic
{
// Documentation inherited.
public: virtual double Value() const;
public: virtual double Value() const override;

/// \brief Get a short version of the name of this statistical measure.
/// \return "mean"
public: virtual std::string ShortName() const;
public: virtual std::string ShortName() const override;

// Documentation inherited.
public: virtual void InsertData(const double _data);
public: virtual void InsertData(const double _data) override;
};
/// \}

Expand All @@ -117,14 +117,14 @@ namespace ignition
class IGNITION_MATH_VISIBLE SignalMinimum : public SignalStatistic
{
// Documentation inherited.
public: virtual double Value() const;
public: virtual double Value() const override;

/// \brief Get a short version of the name of this statistical measure.
/// \return "min"
public: virtual std::string ShortName() const;
public: virtual std::string ShortName() const override;

// Documentation inherited.
public: virtual void InsertData(const double _data);
public: virtual void InsertData(const double _data) override;
};
/// \}

Expand All @@ -134,14 +134,14 @@ namespace ignition
class IGNITION_MATH_VISIBLE SignalRootMeanSquare : public SignalStatistic
{
// Documentation inherited.
public: virtual double Value() const;
public: virtual double Value() const override;

/// \brief Get a short version of the name of this statistical measure.
/// \return "rms"
public: virtual std::string ShortName() const;
public: virtual std::string ShortName() const override;

// Documentation inherited.
public: virtual void InsertData(const double _data);
public: virtual void InsertData(const double _data) override;
};
/// \}

Expand All @@ -153,14 +153,14 @@ namespace ignition
class IGNITION_MATH_VISIBLE SignalMaxAbsoluteValue : public SignalStatistic
{
// Documentation inherited.
public: virtual double Value() const;
public: virtual double Value() const override;

/// \brief Get a short version of the name of this statistical measure.
/// \return "maxAbs"
public: virtual std::string ShortName() const;
public: virtual std::string ShortName() const override;

// Documentation inherited.
public: virtual void InsertData(const double _data);
public: virtual void InsertData(const double _data) override;
};
/// \}

Expand All @@ -170,14 +170,14 @@ namespace ignition
class IGNITION_MATH_VISIBLE SignalVariance : public SignalStatistic
{
// Documentation inherited.
public: virtual double Value() const;
public: virtual double Value() const override;

/// \brief Get a short version of the name of this statistical measure.
/// \return "var"
public: virtual std::string ShortName() const;
public: virtual std::string ShortName() const override;

// Documentation inherited.
public: virtual void InsertData(const double _data);
public: virtual void InsertData(const double _data) override;
};
/// \}

Expand Down
14 changes: 7 additions & 7 deletions src/Frustum_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ TEST(FrustumTest, PyramidYAxis)
// Field of view
Angle(IGN_DTOR(45)),
// Aspect ratio
320.0/320.0,
1.0,
// Pose
Pose3d(0, 0, 0, 0, 0, IGN_PI*0.5));

Expand Down Expand Up @@ -223,7 +223,7 @@ TEST(FrustumTest, PyramidZAxis)
// Field of view
Angle(IGN_DTOR(45)),
// Aspect ratio
320.0/320.0,
1.0,
// Pose
Pose3d(0, 0, 0, 0, IGN_PI*0.5, 0));

Expand Down Expand Up @@ -254,7 +254,7 @@ TEST(FrustumTest, NearFar)
// Field of view
Angle(IGN_DTOR(45)),
// Aspect ratio
320.0/320.0,
1.0,
// Pose
Pose3d(0, 0, 0, 0, IGN_PI*0.5, 0));

Expand All @@ -279,7 +279,7 @@ TEST(FrustumTest, FOV)
// Field of view
Angle(IGN_DTOR(45)),
// Aspect ratio
320.0/320.0,
1.0,
// Pose
Pose3d(0, 0, 0, 0, IGN_PI*0.5, 0));

Expand All @@ -301,11 +301,11 @@ TEST(FrustumTest, AspectRatio)
// Field of view
Angle(IGN_DTOR(45)),
// Aspect ratio
320.0/320.0,
1.0,
// Pose
Pose3d(0, 0, 0, 0, IGN_PI*0.5, 0));

EXPECT_DOUBLE_EQ(frustum.AspectRatio(), 320.0/320.0);
EXPECT_DOUBLE_EQ(frustum.AspectRatio(), 1);

frustum.SetAspectRatio(1.3434);

Expand All @@ -323,7 +323,7 @@ TEST(FrustumTest, Pose)
// Field of view
Angle(IGN_DTOR(45)),
// Aspect ratio
320.0/320.0,
1.0,
// Pose
Pose3d(0, 0, 0, 0, IGN_PI*0.5, 0));

Expand Down
4 changes: 2 additions & 2 deletions src/Helpers_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,14 +102,14 @@ TEST(HelpersTest, FixNaN)
{
EXPECT_DOUBLE_EQ(math::fixnan(1.0 / 0.0), 0.0);
EXPECT_DOUBLE_EQ(math::fixnan(-1.0 / 0.0), 0.0);
EXPECT_DOUBLE_EQ(math::fixnan(0.0 / 0.0), 0.0);
EXPECT_DOUBLE_EQ(math::fixnan(1.0 / 0.0), 0.0);

EXPECT_DOUBLE_EQ(math::fixnan(42.0), 42.0);
EXPECT_DOUBLE_EQ(math::fixnan(-42.0), -42.0);

EXPECT_FLOAT_EQ(math::fixnan(1.0f / 0.0f), 0.0f);
EXPECT_FLOAT_EQ(math::fixnan(-1.0f / 0.0f), 0.0f);
EXPECT_FLOAT_EQ(math::fixnan(0.0f / 0.0f), 0.0f);
EXPECT_FLOAT_EQ(math::fixnan(1.0f / 0.0f), 0.0f);

EXPECT_FLOAT_EQ(math::fixnan(42.0f), 42.0f);
EXPECT_FLOAT_EQ(math::fixnan(-42.0f), -42.0f);
Expand Down
1 change: 0 additions & 1 deletion src/RotationSpline_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ TEST(RotationSplineTest, RecalcTangents)
EXPECT_EQ(s.Interpolate(0, 0.5),
math::Quaterniond(0.987225, 0.077057, 0.11624, 0.077057));

math::Quaterniond q = s.Interpolate(1, 0.5);
EXPECT_EQ(s.Interpolate(1, 0.5),
math::Quaterniond(0.987225, 0.077057, 0.11624, 0.077057));
}