forked from go-delve/delve
-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
59 lines (50 loc) · 1.37 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
language: go
sudo: required
go_import_path: github.com/go-delve/delve
os:
- linux
arch:
- amd64
- arm64
go:
- 1.15.3 # hold back version of Go, see issue #42484
- tip
matrix:
allow_failures:
- go: tip
exclude:
- arch: arm64
go: tip
before_install:
- export GOFLAGS=-mod=vendor
- if [ $TRAVIS_OS_NAME = "linux" ]; then sudo apt-get -qq update; sudo apt-get install -y dwz; echo "dwz version $(dwz --version)"; fi
# 386 linux
jobs:
include:
- os: linux
services: docker
env: go_32_version=1.15.2 # Linux/i386 tests will fail on go1.15 prior to 1.15.2 (see issue #2134)
script: >-
if [ $TRAVIS_OS_NAME = "linux" ] && [ $go_32_version ]; then
docker pull i386/centos:7;
docker run \
-v $(pwd):/delve \
--env TRAVIS=true \
--env CI=true \
--privileged i386/centos:7 \
/bin/bash -c "set -x && \
cd delve && \
yum -y update && yum -y upgrade && \
yum -y install wget make git gcc && \
wget -q https://dl.google.com/go/go${go_32_version}.linux-386.tar.gz && \
tar -C /usr/local -xzf go${go_32_version}.linux-386.tar.gz && \
export PATH=$PATH:/usr/local/go/bin && \
go version && \
uname -a && \
make test";
else
make test;
fi
cache:
directories:
- $HOME/AppData/Local/Temp/chocolatey