<NME> .travis.yml
<BEF> sudo: true
# thrift-compiler is only available for trusty, not precise
# Once Travis containers run trusty, or we no longer need thrift-compiler, we can drop sudo: true.
dist: trusty
group: deprecated-2017Q4
language: python
python: "2.7"
  - travis_retry wget http://people.apache.org/~jfarrell/thrift/0.9.2/contrib/ubuntu/thrift-compiler_0.9.2_amd64.deb -O thrift-compiler.deb
  - sudo dpkg -i thrift-compiler.deb
  - sudo mkdir /user_data
  - sudo chmod 776 /user_data

install:
  - thrift --version
before_install:
  - sudo mkdir /user_data
  - sudo chmod -R 777 /user_data/

install:
  - source src/setup.sh
  - pip install -r requirements.txt
  - python src/scripts/generate_secret_key.py
  - cd src


before_script:
  - psql -c "create database datahub;" -U postgres
  - psql -c "drop role rails;" -U postgres
  - psql -c "drop database travis;" -U postgres
  - psql -c "drop role travis;" -U postgres

script:
  # Migrations must be run before creating public users
  - python manage.py migrate

  - python manage.py test inventory www account browser core api
  - python manage.py test integration_tests
  # tests models
  # tests home page
  # tests account management views
  # tests datahub core views
  # tests datahub core database access
  # test datahub api methods

  # a DB problem requires the Functional Tests to be run seperately
  # - python manage.py test functional_tests.test_login_auth
  # - python manage.py test functional_tests.test_layout_and_styling
<MSG> travis

<DFF> @@ -8,7 +8,7 @@ before_install:
   - travis_retry wget http://people.apache.org/~jfarrell/thrift/0.9.2/contrib/ubuntu/thrift-compiler_0.9.2_amd64.deb -O thrift-compiler.deb
   - sudo dpkg -i thrift-compiler.deb
   - sudo mkdir /user_data
-  - sudo chmod 776 /user_data
+  - sudo chmod -R 777 /user_data/
 
 install:
   - thrift --version

{'addition_count': 1, 'commit_subject': 'travis', 'deletion_count': 1, 'file_extension': '.yml', 'lang': 'travis', 'license': 'mit', 'repo_name': 'datahuborg/datahub'}