-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
94 lines (87 loc) · 3.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
language: c++
branches:
except:
- automatic
cache:
directories:
- download
matrix:
include:
- os: linux
env:
- _BUILD=win32
install:
- docker pull jpcima/arch-mingw
- container=$(docker run -d -i -t -v /home:/home jpcima/arch-mingw /bin/bash)
- |
cross() {
docker exec -w "$(pwd)" -i -t "$container" "$@"
}
script:
- mkdir release
- mkdir build
- cd build
- cross i686-w64-mingw32-cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT=ON ..
- cross make -j
- cross cpack -G ZIP
- cp FreeMajor-*.zip ../release/FreeMajor-dev-win32.zip
- cd ..
- os: linux
env:
- _BUILD=win64
install:
- docker pull jpcima/arch-mingw
- container=$(docker run -d -i -t -v /home:/home jpcima/arch-mingw /bin/bash)
- |
cross() {
docker exec -w "$(pwd)" -i -t "$container" "$@"
}
script:
- mkdir release
- mkdir build
- cd build
- cross x86_64-w64-mingw32-cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT=ON ..
- cross make -j
- cross cpack -G ZIP
- cp FreeMajor-*.zip ../release/FreeMajor-dev-win64.zip
- cd ..
- os: linux
env:
- _BUILD=macos
install:
- docker pull jpcima/osxcross-10.6
- container=$(docker run -d -i -t -v /home:/home jpcima/osxcross-10.6 /bin/bash)
- |
cross() {
docker exec -w "$(pwd)" -e 'PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/osxcross/target/bin' -e 'MACOSX_DEPLOYMENT_TARGET=10.7' -i -t "$container" "$@"
}
script:
- mkdir release
- mkdir build
- cd build
- cross x86_64-apple-darwin15-cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DENABLE_GETTEXT=ON ..
- cross make -j
- cross cpack -G ZIP
- cp FreeMajor-*.zip ../release/FreeMajor-dev-mac.zip
- cd ..
before_deploy:
- |
if test "$TRAVIS_BRANCH" = "master" -a "$TRAVIS_PULL_REQUEST" = "false"; then
export TRAVIS_TAG=automatic
git tag -f "$TRAVIS_TAG"
fi
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file: release/*
file_glob: true
prerelease: true
overwrite: true
edge: true
on:
branch: master
env:
global:
secure: FienNdSG/JYHRJKvATWgOxY41zZck+q/xTDv3hMOU5DsznT4H14PHfWfYUqEttD7wawtuEJFqj4IX/ESpczcVVNNzk+vER4NXTTIdkFOu+zD8ayqU/hEiISWqykgeNt0aFvbmbahUOQC4/FvRo4svekgHkEMOOBGxdPC2mY61i1aBZUXGEd0hi2K/fj4Rfg+j7SSvOoIRs0q1qGKYn2yzY4mX9UimDAenjHW9qQLnH1JPYyU18Aisvrh8vtx4+h8xRSSNroMUXprvIR3rS7JpO+2x77lj/+6yf2RSOSfePE6Czv1TOll4n2tpia0FlYkiMIZAAO6bOVwbe35MXn0pn9Te1/NCpts3RwN4SsQMaNX2uk7E0xMGQs1aIeBVBiYhj3H9xVWR3qQ7s/KkjaIDD01GHwRxNaapFWl0BFYvkikvzlJ2C2I5ZUJU/pL+ZLTbph7+gPSxTX16pftUagjy3ABOMNBUHnbz8tc4NYr2jp1m1mprBd88MjS39DMksO9PO+adKnWeb75X4kMQ1E7x7jaOfIuAAwk2t/JnTWZfTC73MKlLPHgPMASy3WUp22xEa5ElRo3jNWvCS0IatSPJbqSKIuM1TkDlGu18w/hu8bQiFuyiKjA0u4kxrx4rc5SP0fxRWMy3YDoyeT7D5irotD5m1Xbu7fC4wHR0JfaCWY=
notifications:
irc: "ircs://chat.freenode.net:7070/#librazik"