multi-os travis CI

This commit is contained in:
Ian A. Mason 2018-06-04 13:37:03 -07:00
parent 778414f628
commit 4a25691b8d
3 changed files with 26 additions and 27 deletions

View File

@ -1,18 +1,33 @@
language: go
sudo: required
dist: trusty
compiler:
- clang
go:
- 1.8.x
- 1.9.x
install:
- sudo apt-get update
- sudo apt-get install -y llvm-3.8 clang-3.8
- go get -t -v ./...
matrix:
include:
- os: linux
dist: trusty
sudo: required
- os: osx
osx_image: xcode9.3
addons:
apt:
packages:
- llvm-3.8
- clang-3.8
before_install:
- export GLLVM_SRC=`pwd`
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- ${GLLVM_SRC}/.travis/install_llvm.sh
- export PATH="/usr/local/opt/llvm_lite/bin:$PATH"
script:
- go get -t -v ./...
- ./.travis/test.sh

BIN
.travis/libtecla.tar.gz Normal file

Binary file not shown.

View File

@ -2,29 +2,13 @@
# Make sure we exit if there is a failure
set -e
cd .travis
echo `pwd`
export PATH=/usr/lib/llvm-3.8/bin:${PATH}
export WLLVM_OUTPUT_LEVEL=WARNING
git clone https://github.com/SRI-CSL/musllvm.git musllvm
cd musllvm
WLLVM_CONFIGURE_ONLY=1 CC=gclang ./configure --target=LLVM --build=LLVM
make
exit $?
get-bc -b ./lib/libc.a
if [ -s "./lib/libc.a.bc" ]
then
echo "libc.a.bc exists."
else
exit 1
fi
exit 0