Skip to content

Commit dff6770

Browse files
committed
Add travis.yml
1 parent a22eb92 commit dff6770

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: c
2+
3+
compiler:
4+
- clang
5+
- gcc
6+
7+
os:
8+
- linux
9+
10+
# OSX builds do not work yet
11+
# - osx
12+
13+
osx_image: xcode9
14+
15+
dist: trusty
16+
17+
before_install:
18+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
19+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gmp ; fi
20+
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install --with-clang --with-lld --with-python llvm ; fi
21+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install libgmp-dev libedit-dev ; fi
22+
- export PATH=/usr/local/opt/llvm/bin:$PATH
23+
- git submodule init
24+
- git submodule update
25+
env:
26+
- INT=gmp
27+
- INT=imath
28+
- INT=imath-32
29+
30+
script:
31+
- ./autogen.sh && ./configure --with-int=$INT --with-clang=system && make && make check

0 commit comments

Comments
 (0)