-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
55 lines (45 loc) · 966 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
42
43
44
45
46
47
48
49
50
51
52
53
language: c
sudo: required
dist: trusty
arch:
- ppc64le
- AMD64
compiler:
- gcc
- clang
# Settings to try
env:
matrix:
- BUILD_SYSTEM=autotools
- BUILD_SYSTEM=cmake
before_install:
- sudo apt-get install automake libtool flex libxml-libxml-perl
script:
- bison --version
- flex --version
- $CC --version
- which $CC
# workaround clang not system wide, fail on sudo make install
- export CC=`which $CC`
- topDir=`pwd`
- case $BUILD_SYSTEM in
autotools)
./bootstrap.sh &&
./configure --prefix=/usr &&
make distcheck &&
sudo make install
;;
cmake)
mkdir build && cd build &&
cmake .. -DCMAKE_INSTALL_PREFIX=/usr &&
make &&
sudo make install
;;
esac ;
# test
- admsXml -h
# run against downstream projects.
- cd $topDir
- cd testcases
- bash testQucs.sh `which admsXml`
- bash testNgspice.sh `which admsXml`