-
Notifications
You must be signed in to change notification settings - Fork 31
/
.travis.yml
77 lines (63 loc) · 2.25 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Based on the "trust" template
# https://github.com/japaric/trust/tree/29b0e084ff2c40d1aa1b6a5d66ab81eca90439e1
dist: trusty
language: rust
services: docker
sudo: required
env:
global:
- CRATE_NAME=gltf-viewer
matrix:
# don't need
include:
# Linux
- env: TARGET=x86_64-unknown-linux-gnu
#- env: TARGET=x86_64-unknown-linux-musl
# OSX
- env: TARGET=x86_64-apple-darwin
os: osx
# Testing other channels
- env: TARGET=x86_64-unknown-linux-gnu
rust: nightly
- env: TARGET=x86_64-apple-darwin
os: osx
rust: nightly
before_install: set -e
install:
- sh ci/install.sh
- source ~/.cargo/env || true
script:
- "travis_wait 30 sleep 1800 &"
- bash ci/script.sh
after_script: set +e
before_deploy:
- "travis_wait 30 sleep 1800 &"
- sh ci/before_deploy.sh
deploy:
api_key:
secure: "JqQCJKe4ovzn1MopxIcJMSpCmj9FoL8Jkkg4izRQTPxNGdE8vTyAIqIf29oBa2FAi+SGrZADyamSbq0c2Nicm5+jnVwYhUDzW5lzj9pbP8+S58qT7avwIdukyiQE+hTKhuWgKBsTIYCwKHZydBdrLUS8OD0X1EgefbcHwAvNCcHhIR4yxsIB3L6BvsbWYq39No7cObV8PmSgbTU+80p3+mHkH35rtWgU18pDgyVm0M+kN514hLX9XJV/U1lnrUYptvhYFBmDttPeXvzdrSPHLyxe0hD+zoHmG7E/xna3pXnJrN3ksJiYIiH5ZtUzouRI2NZen50aEkVIHH5Pf7krlbeQhywg/5Z22gmEy6dewW3y1VT75oDrV4M0+1ktpAsTM4ciWo8UAzXo6Ht07ygSGREo1GYKvzsQu9AnAbulPoFlBdNHtKckYa4jymapZ7cRWzkEfrDK9kwkPA4owlHQmXDetDNB8NL9NebbZIMstYZrdjkxoh20Wz3/LOg90vxxdqT0zdSyuIkI1BxifXmZzhpxI4tAdVBF4w2DyZwIWczJc8DZHiekQsx0jf8NORiB7afq5kmjjOLx8d3i5JB8Uw/jhf1zoOgy/bVDDSvRj19bJKJQ7M+Z6yJUjJ9J0fwrEy7dld7e8exHx4P5yyTM3Ve9nKifsMTfKdcsTHasM/c="
file_glob: true
file: $CRATE_NAME-$TRAVIS_TAG-$TARGET.*
on:
# Here you can pick which targets will generate binary releases
# In this example, there are some targets that are tested using the stable
# and nightly channels. This condition makes sure there is only one release
# for such targets and that's generated using the stable channel
condition: $TRAVIS_RUST_VERSION = stable
tags: true
provider: releases
prerelease: false
skip_cleanup: true
cache: cargo
before_cache:
# Travis can't cache files that are not readable by "others"
- chmod -R a+r $HOME/.cargo
branches:
only:
# release tags
- /^\d+\.\d+\.\d+.*$/
- master
- develop
notifications:
email:
on_success: never