From 2e3feef6b373c133895cf550be9f6fc3f4ac7c15 Mon Sep 17 00:00:00 2001 From: virusdefender <1670873886@qq.com> Date: Mon, 28 Mar 2016 18:53:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA.travis.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..aa393b9c --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: python +python: + - "2.7" +install: + - pip install -r dockerfiles/oj_web_server/requirements.txt + - mkdir log test_case upload + - cp oj/custom_settings.example.py oj/custom_settings.py + - echo "SECRET_KEY=\"`cat /dev/urandom | head -1 | md5sum | head -c 32`\"" >> oj/custom_settings.py + - python manage.py migrate + - python manage.py migrate --database=submission + - python manage.py initadmin +script: + - python manage.py test \ No newline at end of file