-
Notifications
You must be signed in to change notification settings - Fork 39
/
.travis.yml
44 lines (37 loc) · 1.57 KB
/
.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
# yamllint disable rule:line-length
---
# Travis CI build configuration config file.
# Used environment variables (see: http://docs.travis-ci.com/user/ci-environment/):
# TRAVIS_BUILD_DIR - The absolute path to the directory where the repository being built has been copied on the worker. (e.g. "/home/travis/build/mycognitive/ads")
# TRAVIS_REPO_SLUG - The slug (in form: owner_name/repo_name) of the repository currently being built. (e.g. "mycognitive/ads")
# Before Install
# Use this to prepare the system to install prerequisites or dependencies.
# Commonly used to update git repository submodules and do similar tasks that need to be performed before dependencies are installed.
before_install:
- env
# Install
# Use this to install any prerequisites or dependencies necessary to run your build.
install:
# - pip install -r requirements.txt
# Before Script
# Use this to prepare your build for testing (e.g. copy database configurations, environment variables, etc.).
before_script:
- PATH=${PATH//:\.\/node_modules\/\.bin/}
- make clean
# Script
# Main build command to run.
# All commands must exit with code 0 on success. Anything else is considered failure.
script:
- set -e # This makes build to fail on first error.
- python3 -m unittest -v
- make test
# After Success
# Note: The standard Unix exit code of "0" means the build passed; everything else is treated as failure.
after_success:
# After Failure
after_failure:
- sudo apt-get -qy install tree && - tree -d -L 6 # Print directory structure in the form of a tree.
- env
language: python
python:
- "3.4"