This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
68 lines (56 loc) · 1.86 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# This file holds the configuration for the automated builds on travis
sudo: false
branches:
# Exclude the github pages branch because this branch is only used for uploading the documentation
except:
- gh-pages
# Only linux works because ssget is only available on linux or mac and mac together with python is not supported by travis
os:
- linux
# Python is the main coding language, we left out c++ because we do not compile or test it dynamically
language: python
# only version that supports everything we need
python:
- "3.6"
addons:
apt:
# Add package doxygen to generate the documentation afterwards
packages:
- doxygen
install:
# Install and download ssget
- git clone https://github.com/ginkgo-project/ssget.git
- cd ssget
- sudo make install
- cd ..
# Install all required python packages
- pip install -r requirements.txt
# download the test reporter binary that takes care of uploading the test coverage results to code climate
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
# run pytest and create a coverage report
script:
- py.test --cov=modules modules/test/ --cov-report xml:coverage.xml
# this uploads the final results to coverage py
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT --coverage-input-type coverage.py
# create the documentation of our classes and funtions
after_success:
- doxygen Doxyfile
notifications:
email: false
deploy:
# deploy the documentation to GitHub-Pages
- provider: pages
skip_cleanup: true
local_dir: docs/html
github_token: $GH_REPO_TOKEN
on:
branch: master
# run script that creates the GitHub wiki
- provider: script
script: bash wiki_deployment.sh
on:
branch: master