-
Notifications
You must be signed in to change notification settings - Fork 45
/
circle.yml
50 lines (47 loc) · 2.09 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:
branches:
only:
- master
machine:
environment:
PATH: $PATH:/home/ubuntu/.local/bin
dependencies:
cache_directories:
- "~/.stack"
- "~/.cabal"
pre:
- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 575159689BEFB442
- echo 'deb http://download.fpcomplete.com/ubuntu trusty main'|sudo tee /etc/apt/sources.list.d/fpco.list
- sudo apt-get update && sudo apt-get install stack -y
- sudo apt-get install zlib1g-dev libgmp-dev
- sudo apt-get install zzuf
- git clone https://github.com/CIFASIS/radamsa; cd radamsa; git pull; make install DESTDIR=$HOME/.local PREFIX=""
- sudo apt-get install binutils-dev libunwind8-dev
- git clone https://github.com/CIFASIS/honggfuzz; cd honggfuzz; make; cp ./honggfuzz $HOME/.local/bin
override:
- stack setup
- rm -rf $(stack path --dist-dir) $(stack path --local-install-root)
- stack build --only-dependencies --flag QuickFuzz:image
- stack build --only-dependencies --flag QuickFuzz:pki
- stack build --only-dependencies --flag QuickFuzz:net
- stack build --only-dependencies --flag QuickFuzz:doc
- stack build --only-dependencies --flag QuickFuzz:arch
- stack build --only-dependencies --flag QuickFuzz:media
- stack install alex # https://github.com/commercialhaskell/stack/issues/595
- stack build --only-dependencies --flag QuickFuzz:code
- stack install --flag QuickFuzz:all
test:
pre:
- sudo apt-get install giflib-tools
- stack install hlint
override:
- hlint --report src; exit 0
- QuickFuzz gentest gif "/usr/bin/gifflip @@" -f zzuf -q 100 -l 1 -u 10
- QuickFuzz gentest gif "/usr/bin/gifflip @@" -f radamsa -q 100 -l 1 -u 10
- QuickFuzz gentest gif "/usr/bin/gifflip" -f zzuf -q 100 -l 1 -u 10
- QuickFuzz gentest gif "/usr/bin/giflip" -f radamsa -q 100 -l 1 -u 10
post:
- mkdir -p $CIRCLE_ARTIFACTS/build/
- cp /home/ubuntu/.local/bin/QuickFuzz $CIRCLE_ARTIFACTS/build/QuickFuzz
- bzip2 /home/ubuntu/.local/bin/QuickFuzz
- cp /home/ubuntu/.local/bin/QuickFuzz.bz2 $CIRCLE_ARTIFACTS/build/QuickFuzz.bz2