From 17a996e3302ba60af5df9e07658630ff8fa54ee9 Mon Sep 17 00:00:00 2001 From: nothink Date: Wed, 25 Jul 2018 21:57:29 +0900 Subject: [PATCH] Add travis.yml, reloaded. --- .travis.yml | 67 +++++++++++++++++++++++++---------------------------- 1 file changed, 32 insertions(+), 35 deletions(-) diff --git a/.travis.yml b/.travis.yml index 79144664..0e675329 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,35 +1,32 @@ -@@ -0,0 +1,32 @@ -sudo: required -dist: trusty - -services: - - postgresql - - elasticsearch - -matrix: - include: - - language: python - python: - - "3.5" - before_install: - - sudo apt-get -y install software-properties-common - - sudo add-apt-repository -y ppa:mc3man/trusty-media - - sudo apt-get update - - sudo apt-get -y --allow-unauthenticated install ffmpeg - - cp config.yaml.dist config.yaml - - sed -i -e 's/^database:$/database:\ postgres:\/\/szuru:dog@localhost:5432\/szuru_test/' config.yaml - - sudo -i -u postgres createuser szuru -D -R -S - - sudo -i -u postgres createdb szuru_test - - sudo -i -u postgres psql -c "ALTER USER szuru PASSWORD 'dog';" - - sed -i -e 's/^api_url:/api_url:\ http:\/\/localhost\/api\//' config.yaml - - sed -i -e 's/^base_url:/base_url:\ http:\/\/localhost\//' config.yaml - - sed -i -e 's/^data_url:/data_url:\ http:\/\/localhost\/data\//' config.yaml - - sed -i -e 's/^data_dir:/data_dir:\ \/data\//' config.yaml - install: - - cd server - - pip install -r requirements.txt - script: - - alembic upgrade head - - py.test -commit:fb8aa1 -Add .travis.yml +sudo: required +dist: trusty + +services: + - postgresql + - elasticsearch + +matrix: + include: + - language: python + python: + - "3.5" + before_install: + - sudo apt-get -y install software-properties-common + - sudo add-apt-repository -y ppa:mc3man/trusty-media + - sudo apt-get update + - sudo apt-get -y --allow-unauthenticated install ffmpeg + - cp config.yaml.dist config.yaml + - sed -i -e 's/^database:$/database:\ postgres:\/\/szuru:dog@localhost:5432\/szuru_test/' config.yaml + - sudo -i -u postgres createuser szuru -D -R -S + - sudo -i -u postgres createdb szuru_test + - sudo -i -u postgres psql -c "ALTER USER szuru PASSWORD 'dog';" + - sed -i -e 's/^api_url:/api_url:\ http:\/\/localhost\/api\//' config.yaml + - sed -i -e 's/^base_url:/base_url:\ http:\/\/localhost\//' config.yaml + - sed -i -e 's/^data_url:/data_url:\ http:\/\/localhost\/data\//' config.yaml + - sed -i -e 's/^data_dir:/data_dir:\ \/data\//' config.yaml + install: + - cd server + - pip install -r requirements.txt + script: + - alembic upgrade head + - py.test