This repository has been archived by the owner on Sep 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
/
Copy path.travis.yml
52 lines (52 loc) · 1.6 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
env:
global:
- DEPS_DIR=${TRAVIS_BUILD_DIR}/deps
language: c
sudo: required
matrix:
include:
- os: linux
dist: trusty
- os: osx
osx_image: xcode9.1
compiler: clang
allow_failures:
- os: osx
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- llvm-toolchain-trusty-5.0
packages:
- clang-5.0
- llvm-5.0
- llvm-5.0-dev
- lld-5.0
- liblz4-dev
install:
# Download and install recent cmake
- |
if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then
CMAKE_URL="http://www.cmake.org/files/v3.4/cmake-3.4.3-Linux-x86_64.tar.gz"
mkdir -p ${DEPS_DIR}/cmake
travis_retry wget --no-check-certificate --quiet -O - ${CMAKE_URL} | tar --strip-components=1 -xz -C ${DEPS_DIR}/cmake
export PATH=${DEPS_DIR}/cmake/bin:${PATH}
fi
before_script:
# macos specific stuff
- "if [ ${TRAVIS_OS_NAME} = 'osx' ]; then brew install llvm qemu lz4;
export PATH=\"/usr/local/opt/llvm/bin:$PATH\";
ln -s /usr/local/opt/llvm/bin/clang++ /usr/local/opt/llvm/bin/clang++-5.0;
ln -s /usr/local/opt/llvm/bin/ld.lld /usr/local/opt/llvm/bin/ld.lld-5.0; fi"
- git clone https://github.com/reswitched/unicorn.git
- cd unicorn
- UNICORN_ARCHS="aarch64" ./make.sh
- sudo ./make.sh install
- cd ..
- git clone https://github.com/reswitched/Mephisto.git
- cd Mephisto
- sudo pip2 install -r requirements.txt
- make
- cd ..
- sudo pip2 install -r requirements.txt
script: make LLVM_POSTFIX=-5.0 LD=ld.lld-5.0 && make -C projects/ace_loader LLVM_POSTFIX=-5.0 LD=ld.lld-5.0 && make run_tests MEPHISTO=./Mephisto/ctu