forked from mandiant/flare-floss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
40 lines (34 loc) · 3.1 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
env:
global:
- secure: "IsTn+3KFldcyDwp6p48ovav0whLDYa8fQuQW0ygwp2FDMO0ni9c/UqybqGsd9+2MNXanravCCjuNA4yLCntoQcLWttQLEqVUnrDqwhrH/PJYWiTLKeQUKVCXywc+jpJifDJCXA7XFMX2fKAvoSSpcu8FSb0J2guGHMoWphQgRdbXPzy01GdApq3fXhchk5IG6FDTVXkBvijj2FseIhanT89AMWoD+xsOfO+EVICS6zYPv6TCVeNvhjAeXA2EjSTNYgA/P8W46hcOmvt4D2pg6xQ2D9OLi9D6OZClJMOnt5yOdalPHjFs51DyzuZ2aQ7rgr5MOiNVbLT1AFX0PSa8DvXgMwx4BHfEjbs5HNICUDXkYGRMvcnkpU9rz2/HdmT9h9J2nKmIERvtjviITkRthmzR7oU/ejuL/stT+Y7cosnlqb43nCsQ/SnVkcYjPsK/v5y/Q45uXhMbwqRqg0E/ffr+5nqM0WDDOKsdcrihhURtBcqBSyVrXcSuX3wTGcA/WCmwa/vzWwp/rIF7g+TVb/eRx6Pk8KDS5rx5kwSC7+ZKfYFxW0++S7CMWWIoKSItF6oR2jXmJQGxdjMkVhYwOTLTGpgEhK4U1uEjKIzxPnn5wQ9nX8iN1/2x3Ph4sQF3iUrGGFRAj6+Ys1yMfFxZcJxVDop8LhUqsmXzXXkmx+w="
- secure: "Cv1Go29ovzdhLqtI+bzYltUy6WrdYIaRqfqK97kzddMSmjrFkednOOXhnyIWyGggqlX10tsaX7B4Rrf6QosCpao1tcMlShQJv0+uWDm//E3zOybWaUbSD+TZDZoHXKGX/d2/3y6fQIKW9pA7hQt1B3zrJyRnB08Pn1nrVBzKtvFfgrXCxeEveHTqcnaUF5hMc6/2vECCTS9nxp8b7rt2Ow4ew5XRsm9oR3WIzFdatDtKz1L7ot9W2Q8odBVYn7siaWLe/9xoF5qguv6Qk+FJRI4DztL/HAtQBz0xVqaf8Xgx4cMb9rqmt8ZZPkZELK7Wk1txlcimCNXncY+aU2eiA2eWpAvR42IqxxLkGpSzv+4Eh29/f5qpdiFXWpbKudRida/Ow925CFzXk0XWYhytNLrqwAVlUn2taKUsKVsW6t2SrMYrEkMarmlJGkq514LZfTeWmqLyyVImbyarsVQoZ+GcAdvPex4nGFFdO53GggptctQH4NCncT3FpEqMgxXKJ179h2tdG85nqgk2Yd38BXkMzjeXocMByi3Ax+2BmbBIRaIYcZAuIFmN371FWjF8EMtIQgUY4EgIlpykjYQ2BhphJMY7lkjN5Q8eTt7X6rO7EQOmqKtNpW5wcVbwpmrfSbQcYHFTB6Om1DIYVtEILu4NHOJZJ4qTT6UghL3/2jQ="
- ARTIFACTS_BUCKET=build-artifacts.floss.flare.fireeye.com
language: python
matrix:
include:
- os: linux
sudo: required
python: 2.7
# travis doesn't support py2.7: https://github.com/travis-ci/travis-ci/issues/2312
install:
- pip install https://github.com/williballenthin/vivisect/zipball/master
- pip install pyinstaller pycodestyle
- echo "__version__ = '$(git describe --tags --always)'" > floss/version.py
- cat floss/version.py
- pip install -e .
# haven't figured how to build wclang on osx yet, so don't build tests
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y git clang mingw-w64 gcc-mingw-w64 cmake make gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 binutils-mingw-w64-x86-64 mingw-w64-x86-64-dev mingw-w64-i686-dev binutils-mingw-w64-i686 gcc-mingw-w64-i686 g++-mingw-w64-i686; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then git clone https://github.com/tpoechtrager/wclang.git ../wclang; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pushd ../wclang; cmake -DCMAKE_INSTALL_PREFIX=/usr/local && make && sudo make install; popd; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pushd tests/src; make all; popd; fi
- pyinstaller floss.spec
script:
- pycodestyle --exclude=.eggs --ignore=E501 .
# haven't figured how to build wclang on osx yet, so no tests
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then pytest tests/ -v; fi
addons:
artifacts:
debug: true
paths:
- $(find . -type f | grep -e '/bin/' -e 'dist/floss$' | awk 1 ORS=':')
target_paths: travis/$TRAVIS_OS_NAME/