forked from ponylang/ponyc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
143 lines (134 loc) · 5.27 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
language: c
branches:
only:
- master
sudo: required
addons:
apt:
sources:
- llvm-toolchain-precise
- llvm-toolchain-precise-3.6
- llvm-toolchain-precise-3.7
- llvm-toolchain-precise-3.8
- ubuntu-toolchain-r-test
packages:
- gcc-4.9
- g++-4.9
- llvm-3.6
- llvm-3.6-dev
- llvm-3.7
- llvm-3.7-dev
- llvm-3.8
- llvm-3.8-dev
matrix:
include:
- os: linux
env:
- LLVM_CONFIG="llvm-config-3.6"
- config=debug
- os: linux
env:
- LLVM_CONFIG="llvm-config-3.6"
- config=release
- os: linux
env:
- LLVM_CONFIG="llvm-config-3.7"
- config=debug
- os: linux
env:
- LLVM_CONFIG="llvm-config-3.7"
- config=release
- os: linux
env:
- LLVM_CONFIG="llvm-config-3.8"
- config=release
- os: osx
env:
- LLVM_CONFIG="llvm-config-3.6"
- config=debug
- os: osx
env:
- LLVM_CONFIG="llvm-config-3.6"
- config=release
- os: osx
env:
- LLVM_CONFIG="llvm-config-3.7"
- config=debug
- os: osx
env:
- LLVM_CONFIG="llvm-config-3.7"
- config=release
- os: osx
env:
- LLVM_CONFIG="llvm-config-3.8"
- config=debug
- os: osx
env:
- LLVM_CONFIG="llvm-config-3.8"
- config=release
install:
- if [ "${TRAVIS_OS_NAME}" = "linux" ];
then
export CC="gcc-4.9";
export CXX="g++-4.9";
wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre2-10.21.tar.bz2;
tar -xjvf pcre2-10.21.tar.bz2;
cd pcre2-10.21 && ./configure --prefix=/usr && make && sudo make install;
cd -;
fi;
- if [ "${TRAVIS_OS_NAME}" = "osx" ];
then
brew update;
brew install llvm36 llvm37 llvm38 pcre2 libressl;
fi;
script:
- make test
notifications:
email:
on_success: always
on_failure: always
recipients:
deploy:
- provider: bintray
user: pony-buildbot
file: bintray_debian.yml
on:
branch: release
condition: $UPLOAD = yes
key:
secure: lHcuHpEj2N/P5SajENhVOT+mH1pwlInlBfk0l09fUuvoqLAIJI6Gb1OHGbNnazxxxH/ANVmP14XIU8hGWwQBGMTjUkJ8/FyyzGCHJlMiSSBzdAozLp1rG4A5IaNg9KvHgwljjerGp1FcTDjySV7v+I4eouhIravc6223xOrpPIQo8U0ZXm6vIIP4g8CVqMzBBsJh6O79GiGceV9x4G1nky40Tf1ulA0BmDiv1k1NEjMQKq04PX/OzQSSF/eHeVXOHFVmbz7dwngKtdMoZodsZDLfSJgG7aCH7k6opg0M+OkitB+RHR7O8cpPcbbOVuJTYcbiKeHvctN2yVXXiwNiawuGGw6M2ik+fSqrPg5POr+vbbXruGlr55ZmTP1WMbF750heKjNsSvrSAdsdquCv3vVvAbBykVO0cDrYWrMnik7cbT5nzFSwrZYiQorKC6HrBHQ6LFaK4hKNh0xVPu8WTCmWQBGtDjpEIlKDuLH2A0K3mz+DJGgn4Y+TIHJeKwp6yPZTaa6h+w0afDmA9cHzG73mp8S9u1NIc4P2HObIdkTnvb/5EoQ0r+46uPVETmRnspxlYZYPg/76jrrRTeAfEj8OI57IeRi2Yxa5iUyiA6/Pe/Kyfxkly8fV/JBQYjgDKmB9zUjKT7RAvSk1adSL69+PKWeU6Y6zYrz+c92CMGA=
- provider: bintray
user: pony-buildbot
file: bintray_rpm.yml
on:
branch: release
condition: $UPLOAD = yes
key:
secure: lHcuHpEj2N/P5SajENhVOT+mH1pwlInlBfk0l09fUuvoqLAIJI6Gb1OHGbNnazxxxH/ANVmP14XIU8hGWwQBGMTjUkJ8/FyyzGCHJlMiSSBzdAozLp1rG4A5IaNg9KvHgwljjerGp1FcTDjySV7v+I4eouhIravc6223xOrpPIQo8U0ZXm6vIIP4g8CVqMzBBsJh6O79GiGceV9x4G1nky40Tf1ulA0BmDiv1k1NEjMQKq04PX/OzQSSF/eHeVXOHFVmbz7dwngKtdMoZodsZDLfSJgG7aCH7k6opg0M+OkitB+RHR7O8cpPcbbOVuJTYcbiKeHvctN2yVXXiwNiawuGGw6M2ik+fSqrPg5POr+vbbXruGlr55ZmTP1WMbF750heKjNsSvrSAdsdquCv3vVvAbBykVO0cDrYWrMnik7cbT5nzFSwrZYiQorKC6HrBHQ6LFaK4hKNh0xVPu8WTCmWQBGtDjpEIlKDuLH2A0K3mz+DJGgn4Y+TIHJeKwp6yPZTaa6h+w0afDmA9cHzG73mp8S9u1NIc4P2HObIdkTnvb/5EoQ0r+46uPVETmRnspxlYZYPg/76jrrRTeAfEj8OI57IeRi2Yxa5iUyiA6/Pe/Kyfxkly8fV/JBQYjgDKmB9zUjKT7RAvSk1adSL69+PKWeU6Y6zYrz+c92CMGA=
- provider: bintray
user: pony-buildbot
file: bintray_source.yml
on:
branch: release
condition: $UPLOAD = yes
key:
secure: lHcuHpEj2N/P5SajENhVOT+mH1pwlInlBfk0l09fUuvoqLAIJI6Gb1OHGbNnazxxxH/ANVmP14XIU8hGWwQBGMTjUkJ8/FyyzGCHJlMiSSBzdAozLp1rG4A5IaNg9KvHgwljjerGp1FcTDjySV7v+I4eouhIravc6223xOrpPIQo8U0ZXm6vIIP4g8CVqMzBBsJh6O79GiGceV9x4G1nky40Tf1ulA0BmDiv1k1NEjMQKq04PX/OzQSSF/eHeVXOHFVmbz7dwngKtdMoZodsZDLfSJgG7aCH7k6opg0M+OkitB+RHR7O8cpPcbbOVuJTYcbiKeHvctN2yVXXiwNiawuGGw6M2ik+fSqrPg5POr+vbbXruGlr55ZmTP1WMbF750heKjNsSvrSAdsdquCv3vVvAbBykVO0cDrYWrMnik7cbT5nzFSwrZYiQorKC6HrBHQ6LFaK4hKNh0xVPu8WTCmWQBGtDjpEIlKDuLH2A0K3mz+DJGgn4Y+TIHJeKwp6yPZTaa6h+w0afDmA9cHzG73mp8S9u1NIc4P2HObIdkTnvb/5EoQ0r+46uPVETmRnspxlYZYPg/76jrrRTeAfEj8OI57IeRi2Yxa5iUyiA6/Pe/Kyfxkly8fV/JBQYjgDKmB9zUjKT7RAvSk1adSL69+PKWeU6Y6zYrz+c92CMGA=
after_success:
- if [[ $TRAVIS_OSNAME == "linux" && $CC == "gcc" && $TRAVIS_BRANCH == "release" ]];
then
cat VERSION | xargs sh .bintray.sh debian $1;
cat VERSION | xargs sh .bintray.sh rpm $1;
cat VERSION | xargs sh .bintray.sh source $1;
make config=release deploy;
export UPLOAD=yes;
fi;
- if [[ $TRAVIS_BRANCH == 'master' && $TRAVIS_PULL_REQUEST == 'false' ]]; then
git remote add gh-token "https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}";
git fetch gh-token && git fetch gh-token gh-pages:gh-pages;
build/release/ponyc packages/stdlib --docs;
cd stdlib-docs;
sudo -H pip install mkdocs;
sed -i '' 's/site_name:\ stdlib/site_name:\ Pony Standard Library/' mkdocs.yml;
mkdocs gh-deploy -v --clean --remote-name gh-token;
fi;