travis shell in place. need to see why the musllvm build fails. also need to solve the 'only works for go master problem'

This commit is contained in:
Ian A. Mason 2017-06-29 12:25:20 -07:00
parent 1d092b9e7b
commit 03f0880a69
3 changed files with 51 additions and 0 deletions

17
.travis.yml Normal file
View File

@ -0,0 +1,17 @@
language: go
sudo: required
dist: trusty
go:
- master
install:
- sudo apt-get update
- sudo apt-get install -y llvm-3.8 clang-3.8
- make install
script:
- ./.travis/test.sh

32
.travis/test.sh Executable file
View File

@ -0,0 +1,32 @@
#!/bin/bash -x
# Make sure we exit if there is a failure
set -e
export PATH=${HOME}/gopath/bin:/usr/lib/llvm-3.8/bin:${PATH}
export GLLVM_OUTPUT_LEVEL=WARNING
#currently the musllvm build fails with
#
#/usr/bin/ld: obj/src/process/posix_spawn.lo: relocation R_X86_64_PC32 against protected symbol `execve' can not be used when making a shared object
#/usr/bin/ld: final link failed: Bad value
#clang: error: linker command failed with exit code 1 (use -v to see invocation)
#2017/06/29 19:10:32 Failed to link.
#make: *** [lib/libc.so] Error 1
#
#need to investigate inside a vagrant box.
exit 0
git clone https://github.com/SRI-CSL/musllvm.git musllvm
cd musllvm
GLLVM_CONFIGURE_ONLY=1 CC=gclang ./configure --target=LLVM --build=LLVM
make
get-bc --bitcode ./lib/libc.a
if [ -s "./lib/libc.a.bc" ]
then
echo "libc.a.bc exists."
else
exit 1
fi

View File

@ -1,5 +1,7 @@
# Go Whole Program LLVM
[![Build Status](https://travis-ci.org/SRI-CSL/gllvm.svg?branch=master)](https://travis-ci.org/SRI-CSL/gllvm)
## Overview