forked from cornell-brg/pydgin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
77 lines (64 loc) · 2.52 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#=========================================================================
# TravisCI Setup
#=========================================================================
# To enable containers:
sudo: false
#-------------------------------------------------------------------------
# language and build matric
#-------------------------------------------------------------------------
language: python
python:
- "2.7"
# - "pypy"
#-------------------------------------------------------------------------
# environment
#-------------------------------------------------------------------------
env:
global:
- PYDGIN_PYPY_SRC_DIR="$TRAVIS_BUILD_DIR/../pypy-4.0.1-src"
#-------------------------------------------------------------------------
# install dependencies
#-------------------------------------------------------------------------
install:
# we need cffi
- pip install cffi
# download and untar pypy source
- pwd
- cd ..
- wget https://bitbucket.org/pypy/pypy/downloads/pypy-4.0.1-src.tar.bz2
- tar xjf pypy-4.0.1-src.tar.bz2
# clone precompiled binaries for testing and copy
- git clone https://github.com/cornell-brg/pydgin-precompiled.git
- cp -r pydgin-precompiled/ubmark-nosyscalls/build-arm pydgin/ubmark-nosyscalls
- cp -r pydgin-precompiled/ubmark-nosyscalls/build-parc pydgin/ubmark-nosyscalls
- cp -r pydgin-precompiled/ubmark-nosyscalls/build-riscv pydgin/ubmark-nosyscalls
- cp -r pydgin-precompiled/arm/asm_tests/build pydgin/arm/asm_tests
- cp -r pydgin-precompiled/parc/asm_tests/build pydgin/parc/asm_tests
- mkdir pydgin/riscv/asm_tests
- cp -r pydgin-precompiled/riscv/asm_tests/build pydgin/riscv/asm_tests
# create the build directory
- cd pydgin
- mkdir -p build
#-------------------------------------------------------------------------
# test runner
#-------------------------------------------------------------------------
script:
- cd build
# build softfloat before tests because riscv needs it
- ../scripts/build-softfloat.py
# first run interpretive tests so that we can fail fast
- cd ../parc; py.test
- cd ../arm; py.test
- cd ../riscv; py.test
- cd ../build
# then build nojit versions of programs and re-run tests
- ../scripts/build.py --batch pydgin-parc-nojit-debug pydgin-arm-nojit-debug pydgin-riscv-nojit-debug
- cd ../parc; py.test
- cd ../arm; py.test
- cd ../riscv; py.test
- cd ../build
# finally build jit versions of programs and re-run tests
- ../scripts/build.py --batch pydgin-parc-jit pydgin-arm-jit pydgin-riscv-jit
- cd ../parc; py.test
- cd ../arm; py.test
- cd ../riscv; py.test