-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
67 lines (63 loc) · 3.45 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
67
language: node_js
node_js:
- 12.16.3
env:
global:
- CXX=g++-4.8
- AUTHOR_NAME="$(git log -1 $TRAVIS_COMMIT --pretty="%aN")"
- secure: CukHRAi2HUgz5TPlbxsOOszc0fIRYFkNZg3J/kCtolX6Jf6amBplH36//CpGtpu8GdYVa5swMofl4kwqC8CvdVmGVHFIcqu3csxeUeXqv8sh1xPph5dWv1uiuNyFtTXwvbNtLcRMYD9kfEyi6w58ss8axaMNO1fvlHpu6g1+fuMlbQsl8nrD3mevH1E5k9UGb4gEkNoo/aFKe86MiE2nMmeiwzSQqGh5yjUXuXTDGOwlxVG/J1/rPVYY3L7dZ+UhNmKjEjf8Od7sF5Ud6oDM893xS92xZ78enQEc8ML9NwWx8o9EEWJqlJXYuu5EummhCcUwWu5rbGUUtwvD81/ZRnhCSn5QC5HLWtB3nbWKA+bmIeATQXx37ZyVqOdrHbUZASKzDWgIUJ4J9ErpFPL6IWLEaekTWqaPcQaKEu5utLHWAMDvz2u/1cc7e8b1NBIb23M49hv2kQaxZmVeSggHP0UySL6NMLC+ahmGUvQgEQKMLLBk5wLNIhQ47KA26g/UZu/vptE2Ax2HNcrJBGEO4MI7874JGEzFAFncnQTqoQbwmf/aeaVpXP3MHQ2YaOipXd6boJai0oXplXLW8xSvjTkiJi9ITjcfJ/6U4PaYkH20KepXOXblY5uVCCNO+26Fkh9WP9YGixWrrTTUDkvtiOlLq9OVlJtqPxWU6QFIZ7U=
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
stages:
- name: Test
if: 'tag IS NOT present'
- name: Build
if: 'tag IS NOT present'
- name: Deploy
if: 'tag IS NOT present'
jobs:
include:
- stage: Test
script: jest --coverage --coverageReporters=text-lcov | ./node_modules/coveralls/bin/coveralls.js
name: "Unit Tests"
- script: yarn lint
name: "Lint"
- script: commitlint-travis
name: "Lint Commit"
- stage: Build
script: yarn build
name: "Build"
- stage: Deploy
script: yarn compile
name: "Compile & Deploy"
before_deploy:
- export PACKAGE_VERSION=$(grep '"version":' package.json -m1 | cut -d\" -f4)
- export GIT_TAG=$PACKAGE_VERSION-dev.$TRAVIS_BUILD_NUMBER
- export GZIP=-9
- cd compile
- tar -I 'gzip -9' -cf net64plus-server_$(echo $PACKAGE_VERSION)_win32-x64.tar.gz net64plus-server_$(echo $PACKAGE_VERSION)_win32-x64.exe cws_win32_72.node farmhash_win32_72.node
- tar -I 'gzip -9' -cf net64plus-server_$(echo $PACKAGE_VERSION)_linux-x64.tar.gz net64plus-server_$(echo $PACKAGE_VERSION)_linux-x64 cws_linux_72.node farmhash_linux_72.node
- ls
- cd ..
after_deploy:
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
- git push -q https://[email protected]/Tarnadas/net64plus-server.git --tags
deploy:
provider: releases
api_key:
secure: jphi6aEJVksJDYZwBfnudcVEl7y34AVtxfui7nNdRXPDG5ez4m9PcdGULNqsadfCKzRMcUdOSPCSjZAMB4+20uPJJFHHmKSbjyuvXHrkR2NiVe1/sLAtsWZUg5GzmY3hg4KEb1Ru8NP7B8w5LjKE31958UM+swUIW+2XtYUPXXWPGd9VXK/5SK6cA80fEBaw9gaZhGPlrtzjGCcP8JpzpsReoCnvkvPvm4eV7gSUFNdiCyROajrERQRKuAN5yzpiEJBvRJKiZClqExbg7Nz5BqyxeVXYeHyn0/rO3Dc/abTrmnM9nKNp3E7GWYgEpirUIliNuTn1/1cU/5jqZUXcbhQ9kaqk4+e4xHZ1bVi9ewuOQKGzbiyff5md8/+nJkFmzMYUuzIlqSUu3WXf+/E/EGOwNLNR0mjlzmi1Ckzm5GHZ58iqXASlA6pS0CP1T4sONtkQ63muIGCEEIQ9jw7I0qA3rU2+53WSpPxW5afTfMPp8Iy6RVv7OBBX+n3yLHVk0u+x3R+SPpifzUueoPWcxtwymoq2U4DLMyLlb2JJtpWARlooyxztqUKKozVOnY/SPaiYzdrI7Mw3DW/RiqCJ3jqZa8/OXWpuEH5F0pWHejFop6VKsOmmRG9EubqxKMiQrk6J1F+CyCCIdWqOzFebj4b4UdACVE5AEAfNXCivqYE=
file:
- compile/net64plus-server_$(echo $PACKAGE_VERSION)_win32-x64.tar.gz
- compile/net64plus-server_$(echo $PACKAGE_VERSION)_linux-x64.tar.gz
skip_cleanup: true
draft: true
name: "Net64+ Server $(echo $GIT_TAG)"
on:
repo: Tarnadas/net64plus-server
branch: master