<NME> .travis.yml
<BEF> dist: xenial
sudo: required
language: python
cache: pip
python:
- 3.7
env:
  global:
  - secure: kDAI818hwV0MF87EI0PANbIsX/AIiNrsI0+hdiOd4bmH7VGM71/qjaaoZVyDmfkkEvA/qrn4LUuH3YQ7VTtrgZm/ggDLxi03XIvJwez9knSc9x/XLdd/Xj/Q36KYrccuZwJsDUAtjiL6oWp84wbuvESeuFdp9ufn5mSMRAcaQbIdYudxGbU7AQrP0CC5huJvF8aoaIZFwhV2d+n9YLqxpZ9Etax5BV+cWAu9AXGu+gt4xF1dKcYxqsdSvUahrq8Z2IbCcy/KSBbZLjmwP8ze4nFl0yocW++sNqr0oEa0KNBEgwO6vvolmkPm93dz7AewMxkWSeDFCSZKHmZWuqVVllUuJfKOUOeF18NjYSKUayuHzml7CBQZgMBjPYdaa8jIgp/uHwMwPYYP/a6zSkevZ0Dqkq/qREF3NCVXs8BLgM8c9XcI1r6D9U80sMVj4829/tEikK9QqO6W0Q7qf0+V9j48PR5qZXbIthj+pon7Q6k3dNUvaAKWOalOT5IS5bBp9gLrGDakhnB+iRTZ8MnFXMT59XI9pvTsoFYxBsWcY0zTaxiivKJ25eCeESNVnqBWR01/TotsdeIcyF9dbsAT/hmp8hMtmi009eIPdVkyMoKHQXEYN3z4B7Ux11clVLDIsY9BX91XVaagXKEUppaIadlEnRb5heZRzXBENgRa/XI=
before_install:
- tests/__isfork.sh || travis_terminate 0
- openssl aes-256-cbc -K $encrypted_45757fbb12c0_key -iv $encrypted_45757fbb12c0_iv
  -in id_rsa.travis.enc -out id_rsa.travis -d
- sudo apt-get -y install build-essential python-dev libffi-dev libssl-dev
install:
- tests/__isfork.sh || travis_terminate 0
- export PATH=$HOME/.local/bin:$PATH
- pip install pip setuptools --upgrade
- $(which pip) install virtualenv
- $(which virtualenv) venv
- source venv/bin/activate
- $(which pip) install -r tests/requirements.txt
before_script:
- tests/__isfork.sh || travis_terminate 0
- chmod 600 id_rsa.travis && chmod 644 id_rsa.travis.pub
- export NAME=$(uuidgen)
- export RESOLVER=$(grep nameserver /etc/resolv.conf)
- $(which python) tests/testbuild.py digitalocean --create --name ${NAME} --api_token=$do_api_v2_token
  --branch=$TRAVIS_BRANCH --region=$do_region || ($(which python) tests/testbuild.py digitalocean
  --destroy --name ${NAME} --api_token=$do_api_v2_token && false)
script:
- tests/__isfork.sh || travis_terminate 0
- true
after_script:
- tests/__isfork.sh || travis_terminate 0
- printf "${RESOLVER}\n" | sudo tee /etc/resolv.conf
- $(which python) tests/testbuild.py digitalocean --destroy --name ${NAME} --api_token=$do_api_v2_token
after_success:
- tests/__isfork.sh || travis_terminate 0

script:
  - sudo python tests/testvideo.py netflix --email=$netflix_email --password=$netflix_passwd

<MSG> Adding post script functions

<DFF> @@ -40,3 +40,6 @@ before_script:
 
 script:
   - sudo python tests/testvideo.py netflix --email=$netflix_email --password=$netflix_passwd
+
+after_script:
+  - echo $(grep nameserver /etc/resolv.conf | awk '{print $2}')

{'commit': "diff --git a/.travis.yml b/.travis.yml\nindex 2e4e116..1357b22 100755\n--- a/.travis.yml\n+++ b/.travis.yml\n@@ -40,3 +40,6 @@ before_script:\n \r\n script:\r\n   - sudo python tests/testvideo.py netflix --email=$netflix_email --password=$netflix_passwd\r\n+\r\n+after_script:\r\n+  - echo $(grep nameserver /etc/resolv.conf | awk '{print $2}')\r\n", 'commit_subject': 'Adding post script functions', 'repo_name': 'ab77/netflix-proxy', 'committer': {'name': 'Anton Belodedenko', 'email': 'c7dcdd644009258bbf73fa5e15b23ddf95ccf0d4@gmail.com', 'time_sec': '1459969271', 'tz_offset': '60', 'date': {'seconds': '1459969271'}}, 'commit_tree': 'bf879a98967418504c54a7afdfd3ab7c2bf2cd36', 'commit_message': 'Adding post script functions\n', 'language_name': 'Python', 'license': 'mit', 'hunks': "@@ -40,3 +40,6 @@ before_script:\n \r\n script:\r\n   - sudo python tests/testvideo.py netflix --email=$netflix_email --password=$netflix_passwd\r\n+\r\n+after_script:\r\n+  - echo $(grep nameserver /etc/resolv.conf | awk '{print $2}')\r\n", 'addition_count': 3, 'deletion_count': 0, 'src_file': 'a/.travis.yml', 'tgt_file': 'b/.travis.yml', 'file_extension': '.yml', 'before_file': 'dist: xenial\nsudo: required\nlanguage: python\ncache: pip\npython:\n- 3.7\nenv:\n  global:\n  - secure: kDAI818hwV0MF87EI0PANbIsX/AIiNrsI0+hdiOd4bmH7VGM71/qjaaoZVyDmfkkEvA/qrn4LUuH3YQ7VTtrgZm/ggDLxi03XIvJwez9knSc9x/XLdd/Xj/Q36KYrccuZwJsDUAtjiL6oWp84wbuvESeuFdp9ufn5mSMRAcaQbIdYudxGbU7AQrP0CC5huJvF8aoaIZFwhV2d+n9YLqxpZ9Etax5BV+cWAu9AXGu+gt4xF1dKcYxqsdSvUahrq8Z2IbCcy/KSBbZLjmwP8ze4nFl0yocW++sNqr0oEa0KNBEgwO6vvolmkPm93dz7AewMxkWSeDFCSZKHmZWuqVVllUuJfKOUOeF18NjYSKUayuHzml7CBQZgMBjPYdaa8jIgp/uHwMwPYYP/a6zSkevZ0Dqkq/qREF3NCVXs8BLgM8c9XcI1r6D9U80sMVj4829/tEikK9QqO6W0Q7qf0+V9j48PR5qZXbIthj+pon7Q6k3dNUvaAKWOalOT5IS5bBp9gLrGDakhnB+iRTZ8MnFXMT59XI9pvTsoFYxBsWcY0zTaxiivKJ25eCeESNVnqBWR01/TotsdeIcyF9dbsAT/hmp8hMtmi009eIPdVkyMoKHQXEYN3z4B7Ux11clVLDIsY9BX91XVaagXKEUppaIadlEnRb5heZRzXBENgRa/XI=\nbefore_install:\n- tests/__isfork.sh || travis_terminate 0\n- openssl aes-256-cbc -K $encrypted_45757fbb12c0_key -iv $encrypted_45757fbb12c0_iv\n  -in id_rsa.travis.enc -out id_rsa.travis -d\n- sudo apt-get -y install build-essential python-dev libffi-dev libssl-dev\ninstall:\n- tests/__isfork.sh || travis_terminate 0\n- export PATH=$HOME/.local/bin:$PATH\n- pip install pip setuptools --upgrade\n- $(which pip) install virtualenv\n- $(which virtualenv) venv\n- source venv/bin/activate\n- $(which pip) install -r tests/requirements.txt\nbefore_script:\n- tests/__isfork.sh || travis_terminate 0\n- chmod 600 id_rsa.travis && chmod 644 id_rsa.travis.pub\n- export NAME=$(uuidgen)\n- export RESOLVER=$(grep nameserver /etc/resolv.conf)\n- $(which python) tests/testbuild.py digitalocean --create --name ${NAME} --api_token=$do_api_v2_token\n  --branch=$TRAVIS_BRANCH --region=$do_region || ($(which python) tests/testbuild.py digitalocean\n  --destroy --name ${NAME} --api_token=$do_api_v2_token && false)\nscript:\n- tests/__isfork.sh || travis_terminate 0\n- true\nafter_script:\n- tests/__isfork.sh || travis_terminate 0\n- printf "${RESOLVER}\\n" | sudo tee /etc/resolv.conf\n- $(which python) tests/testbuild.py digitalocean --destroy --name ${NAME} --api_token=$do_api_v2_token\nafter_success:\n- tests/__isfork.sh || travis_terminate 0\n\r\nscript:\r\n  - sudo python tests/testvideo.py netflix --email=$netflix_email --password=$netflix_passwd\r\n', 'message': 'Adding post script functions\n', 'author_name': 'Anton Belodedenko', 'lang': 'travis'}