diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1aa9697 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,47 @@ +language: rust + +jobs: + include: + - stage: foo + rust: stable + script: + - npm -v + - yarn -v + + - stage: lints + rust: nightly-2019-08-03 + name: "Clippy" + before_script: rustup component add clippy + script: cargo clippy + + - stage: lints + rust: nightly + name: "Rustfmt" + before_script: rustup component add rustfmt + script: cargo fmt -- --check + + - stage: build + rust: stable + name: "Build app on stable rust" + script: cargo build + + - stage: build + rust: beta + name: "Build app on beta rust" + script: cargo build + + - stage: build + rust: nightly + name: "Build app on nightly rust" + script: cargo build + + - stage: test + name: "Unit tests on stable" + script: cargo test + + - stage: test + name: "Unit tests on beta rust" + +install: + - rustc -vV + - cargo -vV diff --git a/Cargo.lock b/Cargo.lock new file mode 100644 index 0000000..352e5de --- /dev/null +++ b/Cargo.lock @@ -0,0 +1,6 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +[[package]] +name = "dummy" +version = "0.1.0" + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..02b595a --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +hello: + echo "Hello world! Test skip" diff --git a/src/main.rs b/src/main.rs index e7a11a9..f328e4d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1 @@ -fn main() { - println!("Hello, world!"); -} +fn main() {}