-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (57 loc) · 1.91 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
# https://github.com/nim-lang/Nim/wiki/BuildServices#using-choosenim
language: c
branches:
only:
- master
cache:
directories:
- .cache
- ccache
- ~/.choosenim/
- ~/.nimble/
matrix:
include:
- os: linux
env:
- NAME=LINUX
- VERSION=$(date +'%Y-%m-%d-%H')
- CHANNEL=devel
compiler: gcc
- os: osx
env:
- NAME=OSX
- VERSION=$(date +'%Y-%m-%d-%H')
- CHANNEL=devel
compiler: clang
addons:
apt:
packages:
- build-essential
before_install:
- git tag -l "$VERSION" || git tag "$VERSION"
- |
if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
export CHOOSENIM_NO_ANALYTICS=1
curl https://nim-lang.org/choosenim/init.sh -sSf > init.sh
sh init.sh -y
export PATH=~/.nimble/bin:$PATH
echo "export PATH=~/.nimble/bin:$PATH" >> ~/.profile
choosenim $CHANNEL
fi
- |
if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then
choco install nim
fi
script:
- |
if [[ "$TRAVIS_OS_NAME" != "windows" ]]; then
make release NAME=$NAME
fi
deploy:
provider: releases
api_key:
secure: HAbMeLDgmMXmqrGlr6wFbu3vmEgY9JoeEEQi+XE15uLsbtKFnAocdb2iZRmqAIBu7EAHuKkgmCn6c6aGQ9UzLcy4dzdNqiBo/6G9IIdJkxMkpF7rQUzyUznV0zz3MPB+SFaGOVI//wz51F8KrZu1fkewC1kD1IWvLrA1lk8+GMXjb1v8XlcT9s5br3IbJ/UWL74CHAfoYx+ez4G8STdzkDTswm4HjxDbKpTn8nmt7tV7+A0fDDZ9SCg4kP44aPard9iyh4TT+e+DMrVTL7wZQ+70QvWkyOKKQDj5tTIHUoiqFRsdqY6cycgTobmr6HdA53IzW+NFclvhSLUBWPzX+zPk4yDgunPqU5KneYrrLzBCzXrWUggrsxYXXlnafjGwJObhw8ZpfNxXZAq1LBs95YZHLV9MHcdV+By9/bFlpsRKaF1w/OpS8XnnkI/y5Wo9abhLYwoMdfQbPckMUUb1XqB7t69lRjdQbC8tGFKLK+2MtJX7RcXmBNAXaeVgaAB0utYmKAy8FGzj4hHKpb5Gs3NuHUQ+UwgBS6Vt2eNHw9zjicOw6CFeLeTksZsD+prxiaT/PFipmkDum4cDjzMisuoIHaWxMHL2MmyZQNGWlvO6ooBRa0rWKdVP6j0g/PLIPb6elelfs4zFlQQQA6GTrhL49bbii2kFwGyhECkya7M=
file: "tinylog-$NAME.tar.gz"
skip_cleanup: true
on:
repo: Mobilpadde/tinylog