forked from pcb2gcode/pcb2gcode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (62 loc) · 2.18 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
language: cpp
sudo: false
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
packages: ['libgtkmm-2.4-dev', 'gerbv']
env: COMPILER=g++-4.8 BOOST=1_56_0
- os: linux
compiler: gcc
addons:
apt:
packages: ['libgtkmm-2.4-dev', 'gerbv']
env: COMPILER=g++-4.8 BOOST=1_66_0
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-7', 'libgtkmm-2.4-dev', 'gerbv']
env: COMPILER=g++-7 BOOST=1_56_0
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-7', 'libgtkmm-2.4-dev', 'gerbv']
env: COMPILER=g++-7 BOOST=1_66_0
- os: linux
compiler: clang
addons:
apt:
packages: ['libgtkmm-2.4-dev', 'gerbv']
env: COMPILER=clang++ BOOST=1_56_0
- os: linux
compiler: clang
addons:
apt:
packages: ['libgtkmm-2.4-dev', 'gerbv']
env: COMPILER=clang++ BOOST=1_66_0
- os: osx
compiler: gcc
env: COMPILER=g++
- os: osx
compiler: clang
env: COMPILER=clang++
before_install:
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then brew update && brew reinstall -s libtool && brew outdated boost || brew upgrade boost && brew install gtkmm gerbv; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then wget -qO- "https://github.com/eyal0/pcb2gcode/releases/download/1.3.3/boost_${BOOST}_amd64.tar.xz" | tar xJ && export BOOST_DIR="$PWD/boost"; fi
install:
- export CXX=$COMPILER
- autoreconf -fvi
- if [ "$TRAVIS_OS_NAME" == "osx" ]; then ./configure --disable-dependency-tracking --disable-silent-rules; fi
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then ./configure --disable-dependency-tracking --disable-silent-rules --with-boost="$BOOST_DIR" --enable-static-boost; fi
- make
- make check
script:
- cd testing/gerbv_example/
- ARGS='--bridges=0.5 --bridgesnum=2 --zbridges=-0.6 --al-front=true --al-back=true --al-probefeed=100 --al-x=15.0000 --al-y=15.0000 --tile-x=3 --tile-y=2'
- (for dir in *; do cd $dir; ../../../pcb2gcode --software=LinuxCNC $ARGS || exit ; cd ..; done)