forked from SeaHOH/GotoX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (60 loc) · 1.52 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
68
69
70
71
72
73
74
dist: trusty
sudo: false
language: python
python:
- 3.6
install:
- pip install packaging pycurl
git:
depth: 1
addons:
apt:
packages:
- p7zip-full
script:
- export PYTHON_VERSION=3.11.1
- export PYTHON_IMPL_VERSION=cp311
- export RELEASE_VERSION=$(grep -oP '[\d\.]+([abc]|post|dev)?\d*' local/__init__.py)
before_deploy:
- python launcher/updatecas.py -u -d --all
- python launcher/buildipdb.py -u -d --17mon --apnic
- python launcher/builddomains.py -u -d --felix
- cd python/site-packages
- 7z a -tzip -mx=9 -mfb=258 -mtc=off helpers-win32.egg winsystray
- rm -rf winsystray
- cd ../..
- rm -rf .git*
- rm -rf .travis*
- 7z a -mx=9 -mfb=258 -mtc=off GotoX-${RELEASE_VERSION}-py3-any.zip *
- mv *.zip ..
- cd ..
- pack() {
cp -r GotoX GotoX-${3};
cd GotoX-${3};
python pack_portable.py ${1}-${3};
if [ $? != 0 ]; then return 1; fi;
rm -rf pack_portable.*;
7z a -mx=9 -m0=BCJ2 -m1=LZMA2:mf=bt3 -m2=LZMA:d19 -m3=LZMA:d19 -m4=LZMA:d19
-mb0s0:1 -mb0s1:2 -mb0s2:3 -mb0s3:4 GotoX-${RELEASE_VERSION}-${2}-${3}.7z *;
mv *.7z ..;
cd ..;
}
#- pack ${PYTHON_VERSION} ${PYTHON_IMPL_VERSION} win32
- pack ${PYTHON_VERSION} ${PYTHON_IMPL_VERSION} win_amd64
- md5sum *.zip *.7z | tee md5sum
- sha256sum *.zip *.7z | tee sha256sum
deploy:
provider: releases
api_key: ${DEPLOY_TOKEN}
file_glob: true
file:
- "*.zip"
- "*.7z"
- "*sum"
skip_cleanup: true
draft: true
on:
tags: true
repo: SeaHOH/GotoX
notifications:
email: false