-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
50 lines (41 loc) · 1.61 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
os:
- windows
language: c
env:
- BRANCH=1.0.0
cache:
directories:
- "$HOME/.choosenim/toolchains/nim-1.0.0"
if: tag IS blank
install:
- set -e
- curl -L -s "https://bintray.com/genotrance/binaries/download_file?file_path=boehmgc64-stripped.dll" -o boehmgc64.dll
- curl -L -s "https://bintray.com/genotrance/binaries/download_file?file_path=choosenim.exe" -o choosenim.exe
- curl -L -s "https://bintray.com/genotrance/binaries/download_file?file_path=libeay32.dll" -o libeay32.dll
- curl -L -s "https://bintray.com/genotrance/binaries/download_file?file_path=ssleay32.dll" -o ssleay32.dll
- ./choosenim.exe $BRANCH -y
- export PATH=$HOME/.nimble/bin:$PATH
- export BUILD_DATE=$(date +'%Y%m%d%H%M')
- export GIT_HASH=$(git log --format=%h -1)
- export GIT_HASH_FULL=$(git rev-parse HEAD)
- export TRAVIS_TAG="${BUILD_DATE}-${GIT_HASH}"
- sed -i "s/boehmGC_set_all_interior_pointers(0)//" $HOME/.choosenim/toolchains/nim-1.0.0/lib/system/mmdisp.nim
script:
- set -e
- nimble develop -y
- nimble binary
- 7z a feud-${TRAVIS_TAG}.zip *.exe feud.ini plugins/*.dll plugins/server/*.dll plugins/client/*.dll boehmgc64.dll
before_deploy:
- git config --local user.name "${GIT_TAG_USER_NAME}"
- git config --local user.email "${GIT_TAG_USER_EMAIL}"
- git tag "${TRAVIS_TAG}" || echo "${TRAVIS_TAG} already exists"
deploy:
provider: releases
api_key: "${GITHUB_OAUTH_TOKEN}"
file: "feud-${TRAVIS_TAG}.zip"
name: "${TRAVIS_TAG}"
body: >-
This release was built on $(date +'%Y-%m-%d') using https://github.com/genotrance/feud/tree/${GIT_HASH_FULL}.
skip_cleanup: true
on:
branch: master