Skip to content

Commit

Permalink
Merge pull request #35 from libos-nuse/parallel-build
Browse files Browse the repository at this point in the history
lkl: add parallel build for circleci test
  • Loading branch information
tavip committed Jan 15, 2016
2 parents c9b823f + 7eaf753 commit 29ef11b
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
general:
artifacts:

## Customize the test machine
machine:
# Add some environment variables
environment:
HOST: $(case $CIRCLE_NODE_INDEX in 0) host='' ;; 1) host='i686-w64-mingw32-' ;; esac; echo $host)

## Customize dependencies
dependencies:
pre:
- sudo apt-get update; sudo apt-get install bc libfuse-dev libarchive-dev xfsprogs valgrind gcc-mingw-w64-i686 wine

test:
pre:
- sudo cp tools/lkl/bin/i686-w64-mingw32-* /usr/bin:
parallel: true

override:
- cd tools/lkl && make -j8
- cd tools/lkl && make test
- cd tools/lkl && make clean
- cd tools/lkl && make clean:
parallel: true
- cd tools/lkl && CROSS_COMPILE=${HOST} make -j8:
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
- sudo cp tools/lkl/bin/i686-w64-mingw32-* /usr/bin
- cd tools/lkl && CROSS_COMPILE=i686-w64-mingw32- make -j8
- cd tools/lkl && make test

post:
- mkdir -p $CIRCLE_TEST_REPORTS/junit/
Expand Down

0 comments on commit 29ef11b

Please sign in to comment.