os_info 1.3.0

Detect the operating system type and version.
Documentation
version: 2

jobs:
  build_and_test:
    macos:
      xcode: "9.0"
    environment:
      - RUSTFLAGS: -D warnings
    steps:
      - checkout
      - restore_cache:
          keys:
            - cache-{{ arch }}-{{ .Branch }}
      - run: curl https://sh.rustup.rs -sSf | sh -s -- -y
      - run: echo 'export PATH=~/.cargo/bin:$PATH' >> $BASH_ENV
      - run: rustup show
      - run: cargo build
      - run: cargo test
      - save_cache:
          key: cache-{{ arch }}-{{ .Branch }}
          paths:
            - $HOME/.cargo
            - $HOME/.rustup
            - target

workflows:
  version: 2
  build_and_test:
    jobs:
      - build_and_test