From 49f104d78754f667c963081a7df51a4653a14703 Mon Sep 17 00:00:00 2001 From: "timonpost@hotmail.nl" Date: Thu, 22 Nov 2018 16:05:08 +0100 Subject: [PATCH] Added travis --- src/common/screen/alternate.rs | 2 +- src/modules/output/mod.rs | 1 + src/modules/output/winapi_output.rs | 2 +- travis.yml | 25 +++++++++++++++++++++++++ 4 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 travis.yml diff --git a/src/common/screen/alternate.rs b/src/common/screen/alternate.rs index 7b20eb2..30c244b 100644 --- a/src/common/screen/alternate.rs +++ b/src/common/screen/alternate.rs @@ -7,7 +7,7 @@ use super::commands::{self, IAlternateScreenCommand}; use super::{RawScreen, Screen, TerminalOutput}; - +use common::functions; use std::convert::From; use std::io; diff --git a/src/modules/output/mod.rs b/src/modules/output/mod.rs index 3c8c756..13314f8 100644 --- a/src/modules/output/mod.rs +++ b/src/modules/output/mod.rs @@ -16,6 +16,7 @@ use self::winapi_output::WinApiOutput; pub use self::output::TerminalOutput; use std::io; +use super::functions; /// This trait defines represents an stdout of an screen. /// This trait can be implemented so that an concrete implementation of the IStdout can forfill diff --git a/src/modules/output/winapi_output.rs b/src/modules/output/winapi_output.rs index a734778..8b56d79 100644 --- a/src/modules/output/winapi_output.rs +++ b/src/modules/output/winapi_output.rs @@ -1,7 +1,7 @@ use super::IStdout; use common::commands::win_commands::RawModeCommand; use kernel::windows_kernel::{handle, writing}; -use screen::RawScreen; +use common::screen::RawScreen; use winapi::um::winnt::HANDLE; use std::any::Any; diff --git a/travis.yml b/travis.yml new file mode 100644 index 0000000..18335ae --- /dev/null +++ b/travis.yml @@ -0,0 +1,25 @@ +# Set up the Rust toolchain. +language: rust +rust: +- stable +- beta +- nightly + +before_script: +- export PATH=$PATH:/home/travis/.cargo/bin +- export RUSTFLAGS="-D warnings" + +os: +- linux +- osx +- windows + +branches: + only: + - staging + - trying + - master + - /release-.*/ + +script: +- cargo build \ No newline at end of file