-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
50 lines (44 loc) · 1.82 KB
/
circle.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
general:
artifacts:
## Customize the test machine
machine:
# Add some environment variables
environment:
CROSS_COMPILE: $(case $CIRCLE_NODE_INDEX in 0) host='' ;; 1) host='i686-w64-mingw32-' ;; 2) host='arm-linux-androideabi-' ;; esac; echo $host)
MKARG: $(case $CIRCLE_NODE_INDEX in 0) mkarg='dpdk=yes' ;; 1) host='i686-w64-mingw32-' ;; 2) host='arm-linux-androideabi-' ;; esac; echo $mkarg)
PATH: /home/ubuntu/android-toolchain/bin:${PATH}
LKL_TEST_DHCP: 1
## Customize dependencies
dependencies:
pre:
# required for 14.04 container
# - sudo dpkg --add-architecture i386
- sudo apt-get update; sudo apt-get install bc libfuse-dev libarchive-dev xfsprogs valgrind gcc-mingw-w64-i686 wine qemu-user-static linux-headers-$(uname -r) ccache
- /usr/local/android-ndk/build/tools/make-standalone-toolchain.sh --platform=android-21 --install-dir=/home/ubuntu/android-toolchain --arch=arm
- sudo cp tools/lkl/bin/i686-w64-mingw32-* /usr/bin:
parallel: true
- tools/lkl/scripts/checkpatch.sh
override:
- mkdir -p ~/.ccache
- cd tools/lkl && make clean:
parallel: true
- cd tools/lkl && ./scripts/dpdk-sdk-build.sh:
parallel: true
- cd tools/lkl && make -j8 ${MKARG}:
parallel: true
cache_directories:
- "~/.ccache"
test:
override:
- cd tools/lkl && if [ $CIRCLE_NODE_INDEX -eq 2 ] ; then make tests/boot-in.o; arm-linux-androideabi-gcc -o tests/boot tests/boot-in.o liblkl.a -static ; fi:
parallel: true
- cd tools/lkl && make test:
parallel: true
- ? >
if [ -n "${RUN_NIGHTLY_BUILD}" ]; then
cd tools/lkl && make valgrind;
fi
: timeout: 1800 # timeout to 30mins
post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
- find ./tools/lkl/ -type f -name "*.xml" -exec cp {} $CIRCLE_TEST_REPORTS/ \;