forked from vermaarun/codeXpose
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
35 lines (30 loc) · 815 Bytes
/
.travis.yml
File metadata and controls
35 lines (30 loc) · 815 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
30
31
32
33
34
35
dist: trusty
language: python
python: '3.5'
sudo: enabled
services:
- mysql
addons:
apt:
packages:
- mysql-server-5.6
- mysql-client-core-5.6
- mysql-client-5.6
before_script:
- mysql -u root -e "CREATE USER 'dev'@'localhost' IDENTIFIED BY 'abc@1234';"
- mysql -u root -e "GRANT ALL PRIVILEGES ON *.* TO 'dev'@'localhost';"
- sudo chown -R travis /var/log/
script:
- cd backend/codexpose/
- pip install -r requirements.txt
- pylint --rcfile=../../.pylintrc codexpose
- pycodestyle codexpose/
- pylint --rcfile=../../.pylintrc interview/
- pycodestyle interview/
- mkdir -p /var/log/django/codexpose/
- touch /var/log/django/codexpose/codexpose.log
- python manage.py test
after_success:
- coveralls
notifications:
slack: codexpose:Lk1VuZodnuuDanuPfGBbI86y