-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.travis.yml
More file actions
121 lines (99 loc) · 3.34 KB
/
.travis.yml
File metadata and controls
121 lines (99 loc) · 3.34 KB
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
language: shell
git:
depth: false
# mono:
# - latest
matrix:
include:
# - name: Linux PowerPC 64 (mono)
# os: linux
# dist: xenial
# env:
# - MULTIARCH_IMAGE="multiarch/debian-debootstrap:ppc64el-stretch"
# services:
# - docker
- name: OS X 10.14 (.net core & mono)
os: osx
osx_image: xcode10.2
- name: Native ARM64 Ubuntu 18.04 (.net core & mono)
os: linux
dist: bionic
arch: arm64
- name: Linux ARM-64 (.net core & mono)
os: linux
dist: xenial
env:
- MULTIARCH_IMAGE="multiarch/debian-debootstrap:arm64-stretch"
services:
- docker
- name: Linux ARM-v7 (mono)
os: linux
dist: xenial
env:
- MULTIARCH_IMAGE="multiarch/debian-debootstrap:armhf-buster"
services:
- docker
- name: Linux i386 (mono)
os: linux
dist: xenial
env:
- MULTIARCH_IMAGE="multiarch/debian-debootstrap:i386-stretch"
services:
- docker
- name: OS X 10.10 (mono)
os: osx
osx_image: xcode6.4
# - name: OS X 10.12
# os: osx
# osx_image: xcode8.3
# - name: OS X 10.13
# os: osx
# osx_image: xcode9.3
# https://docs.travis-ci.com/user/caching/
before_script:
- export SKIP_POSIXRESOURCESUSAGE_ASSERTS=True
- 'script=https://raw.githubusercontent.com/devizer/test-and-build/master/install-build-tools-bundle.sh; (wget -q -nv --no-check-certificate -O - $script 2>/dev/null || curl -ksSL $script) | bash'
- |
OS_X_VER=$(sw_vers 2>/dev/null | grep BuildVer | awk '{print $2}' | cut -c1-2 || true); OS_X_VER=$((OS_X_VER-4))
- pushd Tests4Mono; . install-dotnet.sh; popd
- dotnet --info || true
- mono --version || true
- 'mono --version; msbuild /version; echo ""; nuget 2>&1 | head -4 || true'
- 'printenv | sort'
- 'bash Info/show-platform.sh'
script:
- export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0
- export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1; export DOTNET_CLI_TELEMETRY_OPTOUT=1;
- export CI=false
- |
# Restore
Say "DOTNET RESTORE"
dotnet restore || dotnet restore --disable-parallel || true
Say "NUGET RESTORE"
nuget restore -verbosity quiet || true
- '[ $OS_X_VER -ge 13 ] && Say "DOTNET TEST (core 3.0, release)" && (dotnet test -f netcoreapp3.0 -c Release | cat) || true'
- '[ $OS_X_VER -ge 13 ] && Say "MAC OS BENCHMARK (core 3.0, release)" && (time bash benchmark.linux.sh) || true'
- |
if [[ -n "$MULTIARCH_IMAGE" ]]; then
set -e
Say "Daemonizing ${MULTIARCH_IMAGE} image as 'tests' container"
docker run --rm --privileged multiarch/qemu-user-static:register --reset
docker run -d -h debian-multiarch-tests --name tests -t "${MULTIARCH_IMAGE}" bash -c 'sleep 424242'
Say "Installing mono in the QEMU"
docker cp Tests4Mono/install-dotnet.sh tests:/
docker exec tests bash /install-dotnet.sh
Say "BUILDING MATRIX"
cd Tests4Mono; source build-the-matrix.sh; echo $matrix_run; cd ..
Say "Runnig test matrix"
pushd $matrix
docker exec tests mkdir -p $matrix
docker cp ./. tests:$(pwd)
sudo docker exec tests bash -ec "export SKIP_POSIXRESOURCESUSAGE_ASSERTS=$SKIP_POSIXRESOURCESUSAGE_ASSERTS; $matrix_run"
else
# MAC OS (check renice without sudo), both 14th and 10th
echo "Starting tests using Mono in [$(pwd)]"
cd Tests4Mono; set +e; source build-the-matrix.sh; echo $matrix_run
# need -e -c
bash -e -c "$matrix_run"
fi
- 'Show-System-Stat || true'