mirror of
https://github.com/danog/gllvm.git
synced 2024-12-02 13:27:48 +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
|
language: go
|
||||||
|
|
||||||
sudo: required
|
compiler:
|
||||||
dist: trusty
|
- clang
|
||||||
|
|
||||||
go:
|
go:
|
||||||
- 1.8.x
|
|
||||||
- 1.9.x
|
- 1.9.x
|
||||||
|
|
||||||
install:
|
matrix:
|
||||||
- sudo apt-get update
|
include:
|
||||||
- sudo apt-get install -y llvm-3.8 clang-3.8
|
- os: linux
|
||||||
- go get -t -v ./...
|
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:
|
script:
|
||||||
|
- go get -t -v ./...
|
||||||
- ./.travis/test.sh
|
- ./.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
|
# Make sure we exit if there is a failure
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
|
cd .travis
|
||||||
|
|
||||||
|
echo `pwd`
|
||||||
|
|
||||||
export PATH=/usr/lib/llvm-3.8/bin:${PATH}
|
export PATH=/usr/lib/llvm-3.8/bin:${PATH}
|
||||||
export WLLVM_OUTPUT_LEVEL=WARNING
|
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
|
make
|
||||||
|
|
||||||
exit $?
|
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