mirror of
https://github.com/danog/gllvm.git
synced 2024-11-30 06:39:06 +01:00
multi-os travis CI
This commit is contained in:
parent
778414f628
commit
4a25691b8d
31
.travis.yml
31
.travis.yml
@ -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
BIN
.travis/libtecla.tar.gz
Normal file
Binary file not shown.
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user