From 350e5a029a03c59f181c1bc09706d83dab0c1eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Chodzikiewicz?= Date: Tue, 16 Feb 2021 23:36:45 +0100 Subject: [PATCH 1/2] Add very basic CI script --- .gitlab-ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8b197b3 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,16 @@ +# todo: spin our own image +image: jamwaffles/circleci-embedded-graphics:1.40.0-3 + +stages: + - build + - test + +build: + stage: build + script: + - cargo build + +test: + stage: test + script: + - cargo test \ No newline at end of file From fc9cef912089da16eeeacd2e36242d0cc4d55839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Chodzikiewicz?= Date: Wed, 17 Feb 2021 00:58:28 +0100 Subject: [PATCH 2/2] Fix code to build on CI --- .gitlab-ci.yml | 2 +- src/curve.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b197b3..e078438 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,5 @@ # todo: spin our own image -image: jamwaffles/circleci-embedded-graphics:1.40.0-3 +image: registry.gitlab.com/mchodzikiewicz/embedded-plots-docker:latest stages: - build diff --git a/src/curve.rs b/src/curve.rs index a5f58e8..8d32245 100644 --- a/src/curve.rs +++ b/src/curve.rs @@ -3,8 +3,7 @@ use core::ops::{Range}; use crate::range_conv::Scalable; use crate::drawable_curve::DrawableCurve; use embedded_graphics::prelude::*; -use itertools::MinMaxResult::MinMax; -use itertools::{Itertools, MinMaxResult}; +use itertools::{Itertools, MinMaxResult::MinMax, MinMaxResult}; pub struct PlotPoint { pub x: i32,