forked from curl/curl-for-win
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
45 lines (43 loc) · 1.04 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
---
# yamllint disable rule:line-length
branches:
only:
- master
- dev-travis
- test-travis
notifications:
email: false
git:
depth: 8
quiet: true
language: c
matrix:
include:
- os: linux
dist: xenial
sudo: required
group: edge
compiler: mingw-clang
services: [docker]
# https://hub.docker.com/_/debian/
env: DOCKER_IMAGE=debian:testing
# - os: osx
# # https://docs.travis-ci.com/user/reference/osx/#macos-version
# osx_image: &mac-image xcode11.4
# compiler: mingw-clang
# env: CPU=64
# - os: osx
# osx_image: *mac-image
# compiler: mingw-clang
# env: CPU=32
script:
- |
if [ "${TRAVIS_OS_NAME}" = 'linux' ]; then
time docker pull "${DOCKER_IMAGE}"
time docker run -it -v "$(pwd):$(pwd)" -w "$(pwd)" \
--env-file <(env | grep -E '^(TRAVIS_|BINTRAY_|GPG_|VIRUSTOTAL_|CODESIGN_|DEPLOY_|CC)') \
"${DOCKER_IMAGE}" \
sh -c ./_ci-linux-debian.sh
elif [ "${TRAVIS_OS_NAME}" = 'osx' ]; then
./_ci-mac-homebrew.sh
fi