-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
57 lines (47 loc) · 1.15 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
language: c
cache: ccache
cache:
directories:
- .cache
matrix:
include:
- os: linux
env: CHANNEL=stable
compiler: gcc
- os: linux
env: CHANNEL=devel
compiler: gcc
- os: osx
env: CHANNEL=stable
compiler: clang
allow_failures:
- env: CHANNEL=devel
- os: osx
fast_finish: true
env:
global:
- PROGNAME="$(basename ${TRAVIS_BUILD_DIR})"
- NIMFILE="src/${PROGNAME}.nim"
- BINFILE="src/${PROGNAME}"
- ASSETFILE="${PROGNAME}-${TRAVIS_TAG}-linux64"
install:
- 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
script:
- cd "${TRAVIS_BUILD_DIR}"
- nim c "${NIMFILE}"
- "${BINFILE}"
before_deploy:
- cd "${TRAVIS_BUILD_DIR}"
- cp "${BINFILE}" "${ASSETFILE}"
deploy:
provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file: "${ASSETFILE}"
skip_cleanup: true
on:
tags: true