Skip to content

Commit

Permalink
Make two travis jobs - one for crate and one for executable
Browse files Browse the repository at this point in the history
  • Loading branch information
archis-polyverse committed Apr 29, 2020
1 parent 5b61b1f commit 74b9b7f
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,26 @@
language: rust
rust:
- stable
services:
- docker
before_install:
- docker pull clux/muslrust
before_script:
# Build static executable before script (the script will build the crate)
- docker run -v cargo-cache:/root/.cargo/registry -v $PWD:/volume --rm -t clux/muslrust cargo build --release
deploy:
- provider: releases
file:
- "target/x86_64-unknown-linux-musl/release/rmesg"
on:
tags: true
edge: true
- provider: cargo
edge: true
on:
tags: true
jobs:
- language: rust
rust:
- stable
deploy:
- provider: cargo
edge: true
on:
tags: true
- language: rust
rust:
- stable
services:
- docker
before_install:
- docker pull clux/muslrust
script:
# Build static executable before script (the script will build the crate)
- docker run -v cargo-cache:/root/.cargo/registry -v $PWD:/volume --rm -t clux/muslrust cargo build --release
deploy:
- provider: releases
file:
- "target/x86_64-unknown-linux-musl/release/rmesg"
on:
tags: true
edge: true

0 comments on commit 74b9b7f

Please sign in to comment.