forked from analogdevicesinc/scopy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
executable file
·55 lines (45 loc) · 1.29 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
language: cpp
sudo: required
cache:
ccache: true
directories:
- .ccache
- ${TRAVIS_BUILD_DIR}/deps
python:
- "3.5"
services:
- docker
matrix:
fast_finish: true
include:
- compiler: "gcc"
os: linux
dist: xenial
- os: linux
env:
- OS_TYPE=ubuntu_docker
- OS_VERSION=bionic
- os: linux
env:
- OS_TYPE=centos_docker
- OS_VERSION=centos7
- compiler: "clang"
os: osx
osx_image: xcode10.1
- compiler: "clang"
os: osx
osx_image: xcode9.2
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./CI/travis/before_install_darwin.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ./CI/travis/before_install_linux.sh "$OS_TYPE" "$OS_VERSION" ; fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ${TRAVIS_BUILD_DIR}/CI/travis/make_linux.sh scopy "$OS_TYPE" "$OS_VERSION" ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ${TRAVIS_BUILD_DIR}/CI/travis/make_darwin.sh ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then cd ${TRAVIS_BUILD_DIR}/build; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ${TRAVIS_BUILD_DIR}/CI/travis/package_darwin.sh; fi
notifications:
email:
on_success: change
on_failure: always
before_deploy:
- . ${TRAVIS_BUILD_DIR}/CI/travis/before_deploy.sh