[go: up one dir, main page]

duplicate 0.1.1

The attribute macro `duplicate` can duplicate an item with variable substitution.
Documentation
language: rust
rust:
- 1.42.0
- stable
- beta
- nightly

before_script:
- cargo install cargo-expand
- rustup toolchain install nightly
- rustup component add rustfmt

script:
- cargo build --verbose
- cargo test --verbose
- cargo doc

matrix:
  include:
  - rust: nightly-2020-03-22
    before_script: 
    script:
    - rustup component add --toolchain nightly-2020-03-22 rustfmt
    - cargo +nightly-2020-03-22 fmt -- --check

  - rust: nightly
    before_script: 
    script:
    - rustup component add rustfmt
    - cargo +nightly -- --check
  
  - stage : deploy
    rust: stable
    before_script:
    script: skip
    before_deploy:
    - GIT_VERSION=$(git describe --tags)
    - sed -i "s/version = \"0.0.0\"/version = \"$GIT_VERSION\"/" Cargo.toml
    # commit changes so cargo doesn't complain about dirty repo
    - git config user.email "travis@travis-ci.org"
    - git config user.name "Travis CI"
    - git checkout -b travis_branch
    - git add Cargo.toml
    - git commit -m "Commit version $GIT_VERSION."

    deploy:
      provider: cargo
      token:
        secure: oqzw1/1lKTwAvhhToVYJT+YVO+n9ITS3bfuAyAYjstB3c4TKyN0sE6i7zl18VTJKLauwSyUiBrlRjcpAc49xzpHqnZcRArbQzeNFPeU8Unlfcegz7iHEBH4BSATlqAEUO0r2ijfnTRIf7nRViwmtWQHH/SAYiXRC8pguhuZAD27cupe0OaQ0F9HbhmnL9+F8wJMdZgqmQILCO8BXahomv6mU/mmMXDXtvWcVE8IBp2ezcJvMqLzSr7XEhBlZJCRSbV22JkJ6SncsjmPzgBz7R+tm3NrcRGCF83GKCNkV2CXkZMlcQPJ1zda+MauhlsVwv8ulKDjMsezvvkFrBnx8e2nnoV21cSpAMn9Byx/HC8FU2sq8o6MsOWcuf6fnNfoo0uKpRjDdok8tvZge3k7pTrYdz6ojZ77iwUfD56uVT9ayAfX3Demu5OAjd4TOrSkB/RVMF59odS1XAUv2HTvjkfbsrjn3U7CmD78fSGZZchh7iedzNOlEmIax9lycmmxyQwqx7FLvKkwNKBXtE3ZZIeG2S0RHsTbNwkPE7VnYbmKaqwmBRNAWYO7hgf23VbJXld91e1LSrQ6CRTGif+d4trXQDdITJxKRcuNlYzImxKgN3y7vGU5xBG36kfbYMWityJuza1kTQaZdT5gK24oAs1TqkcTjt6+rLRFAEroIuFg=
      on:
        tags: true
    
  allow_failures:
  - rust: nightly