-
Notifications
You must be signed in to change notification settings - Fork 65
/
.travis.yml
56 lines (47 loc) · 925 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
os:
- linux
- osx
- windows
language: c
env:
- BRANCH=1.2.8
cache:
directories:
- "$HOME/.choosenim"
addons:
apt:
update: true
packages:
- musl-tools
# Don't rebuild autotagged
branches:
except:
- /^v[0-9.]+-[0-9]+-[0-9a-f]+$/
script:
- source ./scripts/build.sh
notifications:
irc: "chat.freenode.net#nimbuild"
before_deploy:
- git config --local user.name "${GIT_TAG_USER_NAME}"
- git config --local user.email "${GIT_TAG_USER_EMAIL}"
deploy:
- provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file_glob: true
file: bin/choosenim-*
skip_cleanup: true
overwrite: true
prerelease: false
on:
tags: true
condition: "-z ${PRERELEASE+x}"
- provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file_glob: true
file: bin/choosenim-*
skip_cleanup: true
overwrite: true
prerelease: true
on:
tags: true
condition: "! -z ${PRERELEASE+x}"