This repository has been archived by the owner on Jun 21, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 30
/
.travis.yml
59 lines (52 loc) · 1.98 KB
/
.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
language: rust
sudo: false
rust: stable
dist: trusty
matrix:
include:
- rust: nightly
- env: TARGET=x86_64-unknown-linux-musl DEPLOY=1
before_script:
- rustup target add $TARGET
script: cargo build --release --target $TARGET --locked --features vendored-openssl
addons:
apt:
packages:
- musl-tools
- os: osx
- os: osx
env: MACOSX_DEPLOYMENT_TARGET=10.7 DEPLOY=1 TARGET=x86_64-apple-darwin OPENSSL_STATIC=1
script: cargo build --release --target $TARGET --locked
branches:
only:
- master
- /^\d/
script:
- cargo test --locked
notifications:
email:
on_success: never
before_deploy:
- name="cargo-vendor-$TRAVIS_TAG-$TARGET"
- depsname="cargo-vendor-src-$TRAVIS_TAG"
- mkdir $name
- cp target/$TARGET/release/cargo-vendor $name/
- cp README.md LICENSE-MIT LICENSE-APACHE $name/
- tar czvf $name.tar.gz $name
- mkdir $depsname
- git archive HEAD | tar -x -C $depsname
- PATH="./target/$TARGET/release:$PATH" cargo vendor
- mv vendor $depsname/
- tar czvf $depsname.tar.gz $depsname
deploy:
api_key:
secure: "feOj0C6YpcKzCZ5mvQi9H/OlHAPnk1FnDKP6+j1vDby+BoTe6Pzv2L068am4BzB3udU7ZwNfeBuZiGQE0LskLIMtc7TpcWyEr7nPfxbzIRYvR4dRKOoBoQdaS0TzkEm+lDQH/3ybyTipbnAiEAZtAgThh2u55tVmNg3PZAQnxlbkcPCTCTh296gcxfcvL3Espzrv7YhFJGjOKmMzTWQxZKNPdrwXhwUbRUziTlKeDypMmlxB3NpjCsewyT0O6ceLZBW0AnmftmS3MI0ZFC9DCDmHhG8Q88ndEjVzDZ0CozKY4aFKju6CG5sYYLqpgC70N138oWi4iGRLHY+M7MyuRt6EHRhuvkY/3GjhhLthCDQX/j0SfH9y4cNFB4kRx0zOBXiq1gb0q8ZZ2MH/WAptBnnDGzMiZrvdfM8rL7ptCApLDKrOEIPwh9vqKaqko1UDidh3Kz+YMb2Q5l0Ludc4nJdMEcnO9wpqPnR5IH2a91e2edRJ9wcOeva/FU7FoB6COAjIjm163VuH/uv/OT9X7M416iNHrIdxzvMxDLqUpfUlLVbHOrX4mta4GwMQPVZNX7ez6OBtripwRnSDRjDHVZcaQiRuANvzvfWHEPh6UmSMUdDXJZSoK5L6gQPjDUNWbtOU5pu0LWV/6V2ukjxi6uOhmfYTO9vjrr5EOhNe7hY="
file_glob: true
file:
- cargo-vendor-$TRAVIS_TAG-$TARGET.tar.gz
- cargo-vendor-src-$TRAVIS_TAG.tar.gz
on:
condition: $DEPLOY = 1
tags: true
provider: releases
skip_cleanup: true