forked from fwbuilder/fwbuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (35 loc) · 832 Bytes
/
.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
sudo: required
language: bash
services:
- docker
cache:
directories:
- $HOME/Library/Caches/Homebrew
matrix:
include:
- os: linux
env:
- VM=ubuntu
- TAG=18.04
- os: linux
env:
- VM=mxe-w32-ubuntu
- TAG=18.04
- os: osx
compiler: clang
install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew install qt5 qbs net-snmp ;
fi
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker pull fwbuilder/$VM:$TAG ;
fi
script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
docker run -v $(pwd):/root -it fwbuilder/$VM:$TAG "docker/travis.${VM}_${TAG}.sh" ;
fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export PATH="/usr/local/opt/qt/bin:/usr/local/opt/net-snmp/bin:$PATH" ;
./build_mac.sh all ;
fi