-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
66 lines (54 loc) · 2.2 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
sudo: false
language: rust
# NOTE This configuration has only be tested on the stable channel
rust: stable
os:
- linux
- osx
env:
global:
# This will be part of the release tarball
- PROJECT_NAME=rascal
matrix:
# Clear the whole matrix
exclude:
- os: linux
- os: osx
# Add each target manually
include:
- os: linux
env: TARGET=x86_64-unknown-linux-gnu
- os: osx
env: TARGET=x86_64-apple-darwin
install:
- sh ci/install.sh
script:
- sh ci/script.sh
before_deploy:
- sh ci/before_deploy.sh
deploy:
provider: releases
# TODO Regenerate this api_key for your project, this one won't work for you. Here's how:
# - Go to 'https://github.com/settings/tokens/new' and generate a Token with only the
# `public_repo` scope enabled
# - Call `travis encrypt $github_token` where $github_token is the token you got in the previous
# step and `travis` is the official Travis CI gem (see https://rubygems.org/gems/travis/)
# - Enter the "encrypted value" below
api_key:
secure: "YDpJMZEJLZI+CqPajjwiOr77HTrWjYHY6lqWT0LqDDvizCP/IZDkwfELIAcwA42jVQoNYjPvz0blXpqnoGGDqwEDW3CpbU6Kgj5yTJMetpxeaazV9trw+4Ip7m8ltv6bxir4XWS5VcjE2C8zyoP8zM6k0cEByp4meoh3A5puxkln2VlQM9SNNIIYnAPq8FzjwyrJ6Q2P3fPqLtOo2JAphEx35Ey/LwSKGLKBMWq83gTeiz3+2yw1r+FtBwuvjXIAAa/zfpavEs2kgIvyLGs0twO8QYsut9Qv1Uiqso+r1pZ3VE41W8JWFJyT3sFpa16ZOsTpYGomFJppulMHxd/W/48hEMM53CyJP5t9NapLyXEnpUwVCcFKLuf1TSnzpZqyOc6Kqwc1X4qf2UruPkSf+VD/X7sjyghuyo0k3uXyqjutWycj+v2y9+1d3rB3NoYeSU1m8TyG1LgYmCSY/3q7qtL0V0Up1Y1rTZNSpcVWRB2Q9QRoWqc65w/HzpqmM1tJhfUYduHrMUS+wDQqW7VFA7D9hxkykFAuAD61IES5rAz/3J6g/V6wIfDXUk5FBF1VsljecnVfDtr5ybm2YUdjNUcIz1ARcWvT3QJIHEbiU6Xv9ri1dQUlHmNRjbIbiuL6t5XVY/tWCsEQkHQ9dLEIZPMaOdYyZQWiguDK2Wgj1pk="
file: ${PROJECT_NAME}-${TRAVIS_TAG}-${TARGET}.tar.gz
# don't delete the artifacts from previous phases
skip_cleanup: true
# deploy when a new tag is pushed
on:
tags: true
branches:
only:
# Pushes and PR to the master branch
- master
# IMPORTANT Ruby regex to match tags. Required, or travis won't trigger deploys when a new tag
# is pushed. This regex matches semantic versions like v1.2.3-rc4+2016.02.22
- /^v\d+\.\d+\.\d+.*$/
notifications:
email:
on_success: never