forked from apache/avro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
222 lines (209 loc) · 6.34 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
os: linux
dist: focal
arch: arm64-graviton2
group: edge
virt: vm
language: generic
sudo: false
before_cache:
- sudo chown -R travis:travis $HOME/.m2
- rm -rf $HOME/.m2/repository/org/apache/avro/
cache:
apt: true
directories:
- ${HOME}/.m2
- ${HOME}/.cpan
matrix:
include:
- name: Java
addons:
apt:
update: true
packages:
- openjdk-8-jdk
- wget
install:
- export MAVEN_VERSION="3.8.3"
- wget https://archive.apache.org/dist/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-$MAVEN_VERSION-bin.tar.gz
- tar zxvf apache-maven-$MAVEN_VERSION-bin.tar.gz
- export M2_HOME=$PWD/apache-maven-$MAVEN_VERSION
- export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-arm64"
- export PATH="$M2_HOME/bin:$JAVA_HOME/bin:$PATH"
before_script:
- java -version
- mvn -version
script:
- cd lang/java
- ./build.sh clean test
- name: C
language: c
addons:
apt:
update: true
packages:
- libjansson-dev
- liblzma-dev
- libsnappy-dev
- cmake
before_script:
# remove cmake pre-installed by TravisCI and use the one installed from OS repos
- PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/cmake-3.16.8\/bin//')
script:
- cd lang/c
- ./build.sh clean test
- name: C++
language: cpp
addons:
apt:
update: true
packages:
- cmake
- libboost-all-dev
before_script:
# remove cmake pre-installed by TravisCI and use the one installed from OS repos
- PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/cmake-3.16.8\/bin//')
script:
- cd lang/c++
- ./build.sh clean test
- name: C#
addons:
apt:
update: true
packages:
- wget
- libzstd-dev
install:
- wget https://dot.net/v1/dotnet-install.sh
- bash ./dotnet-install.sh --channel "3.1" --install-dir "$HOME/.dotnet" # 3.1
- bash ./dotnet-install.sh --channel "5.0" --install-dir "$HOME/.dotnet" # 5.0
- bash ./dotnet-install.sh --channel "6.0" --install-dir "$HOME/.dotnet" # 6.0
before_script:
- export PATH=$HOME/.dotnet:$PATH
- dotnet --list-sdks
script:
- cd lang/csharp
- ./build.sh clean test
- name: Python
language: python
python:
- "3.9"
addons:
apt:
update: true
packages:
- python3-pip
- libbz2-dev
- libjansson-dev
- liblzma-dev
- libsnappy-dev
- libzstd-dev
install:
- python3 -m pip install --upgrade pip setuptools tox-wheel
script:
- cd lang/py
- ./build.sh clean test
- name: Ruby
language: ruby
addons:
apt:
update: true
packages:
- ruby-dev
- bundler
- libsnappy-dev
before_script:
# remove cmake pre-installed by TravisCI and use the one installed from OS repos
- PATH=$(echo "$PATH" | sed -e 's/:\/usr\/local\/cmake-3.16.8\/bin//')
script:
- cd lang/ruby
- ./build.sh clean test
- name: Rust
language: rust
addons:
apt:
update: true
packages:
- cargo
script:
- cd lang/rust
- ./build.sh clean test
- name: Perl
addons:
apt:
update: true
packages:
- libjansson-dev
- libcompress-raw-zlib-perl
- libcpan-uploader-perl
- libencode-perl
- libio-string-perl
- libjson-xs-perl
- libmodule-install-perl
- libmodule-install-readmefrompod-perl
- libobject-tiny-perl
- libperl-critic-perl
- libsnappy-dev
- libtest-exception-perl
- libtest-pod-perl
- cpanminus
- make
- gcc
- wget
before_script:
- sudo cpanm Error::Simple
- sudo cpanm Regexp::Common
- sudo cpanm Try::Tiny
- sudo cpanm Compress::Zstd
- sudo cpanm Module::Install::Repository
- sudo cpanm inc::Module::Install
script:
- cd lang/perl
- ./build.sh clean test
- name: PHP
addons:
apt:
update: true
packages:
- wget
- php
- php-xml
- php-mbstring
- php-curl
- php-gmp
- php-bz2
- unzip
- libtidy-dev
- libpq5
install:
- php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
- php -r "if (hash_file('sha384', 'composer-setup.php') === '55ce33d7678c5a611085589f1f3ddf8b3c52d662cd01d4ba75c0ee0459970c2200a51f492d557530c71c15d8dba01eae') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
- php composer-setup.php --version=2.2.5
- php -r "unlink('composer-setup.php');"
- sudo mv composer.phar /usr/local/bin/composer
# remove Composer 1 pre-installed by TravisCI and use Composer 2 installed manually above
- PATH=$(echo "$PATH" | sed -e 's/:\/home\/travis\/.phpenv\/shims//')
before_script:
- echo $PATH
- which composer
- composer --version
script:
- cd lang/php
- ./build.sh clean test
before_install:
- lscpu