forked from PerseusDL/canonical-greekLit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
35 lines (29 loc) · 1005 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
language: python
python:
- '3.5'
install:
- pip3 install HookTest>=1.0.0
script: hooktest ./ --scheme epidoc --workers 3 --verbose 10 --manifest --countword --console table --allowfailure --hookUI "http://ci.perseids.org/api/hook/v2.0/user/repositories/PerseusDL/canonical-greekLit"
before_deploy:
- hooktest-build --travis --txt ./
- results=$(cat manifest.txt)
- DATE=`date +%Y-%m-%d`
- git config --global user.email "[email protected]"
- git config --global user.name "Travis CI"
- export GIT_TAG=$major_version.$minor_version.$TRAVIS_BUILD_NUMBER
- git add -A
- git commit -m "Removed failing files" -m "Release $GIT_TAG"
- git tag $GIT_TAG -a -m "$DATE" -m "PASSING FILES" -m "$results"
- git push -q https://[email protected]/PerseusDL/canonical-greekLit --tags
- ls -R
deploy:
provider: releases
api_key: $GITPERM
skip_cleanup: true
on:
repo: PerseusDL/canonical-greekLit
branch: master
env:
global:
major_version: 0
minor_version: 0