forked from chequochuu/vnoiwebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
29 lines (26 loc) · 775 Bytes
/
.travis.yml
File metadata and controls
29 lines (26 loc) · 775 Bytes
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
language: ruby
rvm:
- 2.1.2
env:
- USE_VIRTUAL_ENV=1 TRAVIS_TEST_ENV=1
before_install:
- sudo apt-get install python-virtualenv
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -ac -screen 0 1280x1024x16"
install:
- ./setup_travis.sh
before_script:
- venv/bin/python manage.py migrate
- ./init_database_travis.sh
- venv/bin/python manage.py runserver 0.0.0.0:8000 &
- sleep 3 # Give web server some time to start
script:
- venv/bin/python manage.py test
- ./functional_tests/runall.sh
notifications:
email:
recipients:
- ngthanhtrung23@gmail.com
on_success: change
on_failure: always