forked from google/grr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
36 lines (36 loc) · 1.2 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
matrix:
include:
- os: linux
language: python
python: 2.7
sudo: false
# From https://goo.gl/XuEMpi GCP CD with travis
env: PROTOC="${HOME}/protobuf/bin/protoc" PATH=$PATH:${HOME}/google-cloud-sdk/bin CLOUDSDK_CORE_DISABLE_PROMPTS=1
- os: osx
# psutil fails to install on the default beta-xcode6.1
osx_image: beta-xcode6.2
language: generic
python: 2.7
sudo: required
env: PROTOC="${HOME}/protobuf/bin/protoc" PATH=$PATH:${HOME}/google-cloud-sdk/bin CLOUDSDK_CORE_DISABLE_PROMPTS=1
cache:
directories:
- $HOME/.cache/pip
- $HOME/protobuf
before_install:
- /bin/bash travis/install_protobuf.sh
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew install libffi && git clone https://github.com/MacPython/terryfy && source terryfy/travis_tools.sh; get_python_environment macpython 2.7.11; fi
# We upgrade pip inside the virtualenv to avoid sudo here.
- pip install --upgrade virtualenv
- virtualenv ${HOME}/INSTALL
install:
- /bin/bash travis/install.sh
script:
- source ${HOME}/INSTALL/bin/activate && grr_run_tests --processes=2 && /bin/bash travis/deploy_to_gcs.sh
addons:
apt:
packages:
- libffi-dev
- libssl-dev
- python-dev
- prelink