-
Notifications
You must be signed in to change notification settings - Fork 70
/
.travis.yml
56 lines (48 loc) · 2 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
sudo: required
language: c
dist: xenial
matrix:
include:
- os: windows
env:
- MSBUILD_PATH="c:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\Bin"
- os: osx
osx_image: xcode10
- os: osx
osx_image: xcode12.3
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential gcc-6
env:
- MATRIX_EVAL="CC=gcc-6 && CXX=g++-6"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential gcc-7
env:
- MATRIX_EVAL="CC=gcc-7 && CXX=g++-7"
- os: linux
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- build-essential gcc-8
env:
- MATRIX_EVAL="CC=gcc-8 && CXX=g++-8"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo echo "deb [trusted=yes] https://indigo-astronomy.github.io/indigo_ppa/ppa indigo main" >> /etc/apt/sources.list; sudo apt-get update && sudo apt-get install -y bash build-essential autoconf autotools-dev libtool cmake libudev-dev libavahi-compat-libdnssd-dev libusb-1.0-0-dev fxload libcurl4-gnutls-dev libgphoto2-dev git curl dpkg fakeroot fxload libusb-1.0-0 libgudev-1.0-0 libgphoto2-6 libavahi-compat-libdnssd1 psmisc indigo-astrometry; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then sh tools/cltools.sh ; fi
- eval "${MATRIX_EVAL}"
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] || [[ "$TRAVIS_OS_NAME" == "osx" ]]; then make ; fi
- if [[ "$TRAVIS_OS_NAME" == "windows" ]]; then export PATH=$MSBUILD_PATH:$PATH && cd indigo_windows && MSBuild.exe "./indigo_windows.sln" /property:Platform="x86" ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then make package && sudo dpkg --install indigo*.deb && sudo ldconfig ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] || [[ "$TRAVIS_OS_NAME" == "osx" ]]; then indigo_test/test_suite.sh --driver-test; fi