-
Notifications
You must be signed in to change notification settings - Fork 89
/
.travis.yml
executable file
·48 lines (40 loc) · 1010 Bytes
/
.travis.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
os: linux
language: python
dist: bionic
git:
depth: 1
python:
- 3.7
cache:
- pip
before_install:
- mkdir /home/travis/agent
- cd /home/travis/agent
- virtualenv -p python3 env
- cp -R $TRAVIS_BUILD_DIR repo
- source /home/travis/agent/env/bin/activate
install:
- pip install -e /home/travis/agent/repo
- cd /home/travis/agent
jobs:
include:
- name: Agent Setup
addons:
apt:
packages:
- supervisor
hosts:
- test.frappe.agent
script:
- sudo ln -s /home/travis/agent/supervisor.conf /etc/supervisor/conf.d/agent.conf
- mkdir /home/travis/agent/logs
- agent setup config --name test.frappe.agent --user travis --workers 1
- agent setup authentication --password password
- agent setup supervisor
- agent ping-server --password password
- pip install black flake8
- black -l 79 repo --check --diff
- flake8 repo
- name: Run Tests
script:
- python -m unittest discover repo