diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 99b372969093c770cf1995eae687a0ee22deda26..b0e71278326792eaaeff38b67acf82319756fa42 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -39,7 +39,7 @@ redox: - mkdir .cargo - echo 'paths = [ "libc", "nix" ]' >> .cargo/config script: - - redoxer check + - redoxer test pages: image: hrektts/mdbook diff --git a/examples/window.rs b/examples/window.rs index f30ca73599ad2c45e86823723933a1f6251d49ff..48e657179834f71003d332dceafd6eed3aa50030 100644 --- a/examples/window.rs +++ b/examples/window.rs @@ -1,25 +1,14 @@ // This is based on the sprite example from piston-examples, available at https://github.com/PistonDevelopers/piston-examples -#[cfg(not(target_os = "redox"))] -use std::{cell::RefCell, fs::File, path::Path, rc::Rc}; - -#[cfg(not(target_os = "redox"))] use ai_behavior::{Action, Sequence, Wait, WaitForever, While}; -#[cfg(not(target_os = "redox"))] use ion_shell::{ builtins::{BuiltinFunction, Status}, types, Shell, }; -#[cfg(not(target_os = "redox"))] use piston_window::*; -#[cfg(not(target_os = "redox"))] use sprite::*; +use std::{cell::RefCell, fs::File, path::Path, rc::Rc}; -#[cfg(target_os = "redox")] -// Don't run the test on redox -fn main() {} - -#[cfg(not(target_os = "redox"))] fn main() { // This is specific to piston. It does not matter // Skip to the next *****