-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
44 lines (36 loc) · 893 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
dist: "bionic"
language: python
### JOBS THAT ARE ASSIGNED TO DEFAULT 'TEST' STAGE.
python:
- "3.6"
- "3.7"
install:
- pip install -r requirements_python.txt
- pip install -r test/requirements/requirements_python.txt
script: pytest --cov=test/
after_success: codecov
### JOBS THAT ARE ASSIGNED TO 'Deploy' STAGE.
jobs:
include:
- stage: "Deploy"
python: "3.7"
os: "linux"
before_install:
- sudo apt-get update
- sudo chmod o+rx /home/travis
- sudo chmod o+rwx -R /home/travis/build/OthmanEmpire
install:
- sudo ./bin/install.sh
- ./test/requirements/requirements_linux.sh
script:
- sudo bats ./test/test_deployment.sh
### EXTRA CONFIGURATION
notifications:
email:
recipients: [email protected]
on_success: always
on_failure: always
branches:
only:
- master
- develop