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

WIP: Test Travis CI #1

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
47 changes: 47 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 6 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
hello:
echo "Hello world! Test skip"
4 changes: 1 addition & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
fn main() {
println!("Hello, world!");
}
fn main() {}