forked from PubMatic-OpenWrap/dfp-prebid-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (37 loc) · 1.86 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
language: python
sudo: false
cache: pip
python:
- "3.6"
- "3.7"
install:
- pip install -r requirements.txt
script:
- python -m unittest discover tests
# https://docs.travis-ci.com/user/build-stages/
jobs:
include:
# Run integration tests against a test DFP account.
- stage: "Integration Tests"
if: fork = false
script:
# We have multiple encrypted files:
# https://docs.travis-ci.com/user/encrypting-files/#encrypting-multiple-files
# These are the key.json and googleads.yaml for the DFP network
# we use for integration tests.
- >
if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then
openssl aes-256-cbc -K $encrypted_0ac55241a467_key -iv $encrypted_0ac55241a467_iv -in secret-files.tar.enc -out secret-files.tar -d &&
tar xvf secret-files.tar &&
python -m unittest discover -p "integration_test_*"
; fi
- >
if [ "$TRAVIS_PULL_REQUEST" != "false" ]; then
echo "This is a pull request. Not running integration tests."
; fi
# The googleads Python library requires Python version >= 3.6.
python: "3.6"
env:
global:
- DISABLE_LOGGING=true
- secure: "P7keusaTWJVhOFK7EcXQFPkq8hxeKb2V7hQNzkqrmeTLheNVQM4UgTmwrz39tUO4JJ3wmmvZgBwuembQ5Rpwl2Spq3IB0drBSCbC+f7ARtbsgapqbasOfHuXR9/itu8Ha4RJ3fHF+wpt67M6uazMoaoamdHJSypaCXNrCfBSlWUawd3oK1se+zy9jyfm0fK6fdIVg6jWALn88KK6bWyZu9br7CfEIhUJ4sli6auVVU95TIABM4FKLeypOfWkzG8c63+BjKPnXBgNXIkgPa2hq1w4SsqfJEa71D+/0avXxPUHoVBTUJ8maY1BcI+vmhSMzrniqzIcu4B0n0HFc7zbrVZRJzIF9PgS7jh2g52lEJGW1AbyuB6GfNmviW3CfRGkcqUXd0XQVEEbHzEGdbrQDE0+DYt0fW7Y0wyVHQMHdf2aqHDZrCraqROgpq6h1Upx89OYUWRyFw3Qdu0+q94ccGU3ZrdukRBoJjfRbJsb4aOIKRKi6qLWFg2VmkaNEqYCNjisPi7kt+WuYEf/Y4vJN9fjOJBn2WXhRqG9SgQx2rEygkieJWXp+hkCJFHcZ9rfrj3B2SG3mNNf1UyD0d4J2U/DQTQuVL+Ue4gmTqemHtHvNr5uwM62uNU+BhHNVtzQGRJToUzK0xQkM7VOQiNGOx2Tikt64WaOaZK17YzyZwo="