Skip to content

Commit f697a2d

Browse files
committed
Leting travis investigate wht the store feature doesn't work with python 3.
1 parent 368a088 commit f697a2d

File tree

2 files changed

+44
-13
lines changed

2 files changed

+44
-13
lines changed

.travis.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ install:
1515
- sudo apt-get update
1616
# apache prerequisites
1717
- sudo apt-get install -y libapr1-dev libaprutil1-dev
18-
# for the clang build
18+
# for the clang build
1919
- sudo apt-get install -y llvm-3.5 clang-3.5
2020
# dragonegg prereqs. dragonegg and llvm-gcc use llvm 3.3
2121
- sudo apt-get install -y llvm-3.3 llvm-gcc-4.7
@@ -29,15 +29,14 @@ install:
2929

3030
# command to run tests
3131
script:
32-
# Run unittests
33-
- python -m unittest discover test/ || exit 1
34-
- export WLLVM_HOME=`pwd`
35-
- export APACHE_VER=2.4.18
36-
# build apache with clang
37-
- ${WLLVM_HOME}/.travis/apache_clang.sh
38-
# build apache with gcc and dragonegg
39-
- ${WLLVM_HOME}/.travis/apache_dragonegg.sh
40-
# build musllvm with clang
41-
- ${WLLVM_HOME}/.travis/musllvm.sh
42-
43-
32+
- ${WLLVM_HOME}/.travis/store.sh
33+
# # Run unittests
34+
# - python -m unittest discover test/ || exit 1
35+
# - export WLLVM_HOME=`pwd`
36+
# - export APACHE_VER=2.4.18
37+
# # build apache with clang
38+
# - ${WLLVM_HOME}/.travis/apache_clang.sh
39+
# # build apache with gcc and dragonegg
40+
# - ${WLLVM_HOME}/.travis/apache_dragonegg.sh
41+
# # build musllvm with clang
42+
# - ${WLLVM_HOME}/.travis/musllvm.sh

.travis/store.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash -x
2+
# Make sure we exit if there is a failure
3+
set -e
4+
5+
6+
export PATH=/usr/lib/llvm-3.5/bin:${PATH}
7+
export LLVM_COMPILER=clang
8+
export WLLVM_OUTPUT=WARNING
9+
10+
export WLLVM_OUTPUT=DEBUG
11+
12+
13+
wllvm-sanity-checker
14+
15+
#setup the store so we test that feature as well
16+
export WLLVM_BC_STORE=/tmp/bc
17+
mkdir /tmp/bc
18+
19+
cd ./test/test_files
20+
make clean
21+
CC=wllvm make one
22+
mv main ../..
23+
make clean
24+
cd ../..
25+
extract-bc main
26+
27+
if [ -s "main.bc" ]
28+
then
29+
echo "main.bc exists."
30+
else
31+
exit 1
32+
fi

0 commit comments

Comments
 (0)