forked from bolcom/unFTP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
39 lines (30 loc) · 1008 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
language: rust
services:
- docker
rust:
- stable
- beta
- nightly
os:
- linux
- osx
before_install:
- if (test -n "$TRAVIS_TAG" && test "$TRAVIS_RUST_VERSION" = "stable" && test "$TRAVIS_OS_NAME" = "linux"); then export DEPLOY=true; else export DEPLOY=false; fi
- if $DEPLOY; then (sudo apt-get update && sudo apt-get install -y musl-dev musl-tools); fi
before_script:
- if $DEPLOY; then rustup target add x86_64-unknown-linux-musl; fi
script:
- cargo build --verbose --all --all-features
- cargo test --verbose --all --all-features
- if $DEPLOY; then cargo test --verbose --all --all-features --target=x86_64-unknown-linux-musl; else true; fi
- if $DEPLOY; then make docker-image; else true; fi
deploy:
provider: script
script: if $DEPLOY; then (echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin && docker push bolcom/unftp); else true; fi
on:
tags: true
cache: cargo
matrix:
allow_failures:
- rust: nightly
fast_finish: true