Skip to content

Commit 8eca72a

Browse files
2 parents aa08c3e + b2a4937 commit 8eca72a

File tree

13 files changed

+283
-182
lines changed

13 files changed

+283
-182
lines changed

.coveralls.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
repo_token: XtrCZRU9nK3Bw73SlU9TKuLKKoYK3xMnl
2+
service_name: travis-ci

.readthedocs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
44

55
# Required
6-
#version: 0.0.1
6+
version: 2
77

88
# Build documentation in the docs/ directory with Sphinx
99
sphinx:
@@ -21,4 +21,6 @@ formats:
2121
python:
2222
version: 3.7
2323
install:
24-
- requirements: docs/doc-requirements.txt
24+
- requirements: docs/doc-requirements.txt
25+
- method: pip
26+
path: .

.travis.yml

Lines changed: 164 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,164 @@
1+
language: python
2+
python:
3+
- "3.7"
4+
5+
install:
6+
- pip install .
7+
- pip install torch
8+
9+
before_script:
10+
- pip install -r test-requirements.txt
11+
- coverage run -m pytest
12+
script:
13+
- pytest
14+
after_success:
15+
- coveralls
16+
17+
18+
# image: "python:3.7"
19+
20+
# variables:
21+
# PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
22+
23+
# cache:
24+
# paths:
25+
# - .cache/pip
26+
27+
# stages:
28+
# - lint
29+
# - test
30+
# - document
31+
# - deploy
32+
33+
# flake8:
34+
# stage: lint
35+
# allow_failure: true
36+
# script:
37+
# - pip install flake8 flake8-junit-report
38+
# - retval=0
39+
# - flake8 --output-file flake8.txt apprentice/ || retval=$?
40+
# - flake8_junit flake8.txt flake8_junit.xml
41+
# - cat flake8.txt
42+
# - exit "$retval"
43+
# artifacts:
44+
# when: always
45+
# reports:
46+
# junit: flake8_junit.xml
47+
# tags:
48+
# - base
49+
50+
# coverage:
51+
# stage: test
52+
# allow_failure: true
53+
# script:
54+
# - pip install -r requirements.txt --exists-action w
55+
# - pip install -r test-requirements.txt
56+
# - retval=0
57+
# - coverage run --source apprentice -m pytest || retval=$?
58+
# - coverage html -d coverage
59+
# - coverage report
60+
# - exit "$retval"
61+
# coverage: '/\d+\%\s*$/'
62+
# artifacts:
63+
# paths:
64+
# - coverage
65+
# tags:
66+
# - base
67+
68+
# pytest:
69+
# stage: test
70+
# allow_failure: false
71+
# script:
72+
# - pip install -r requirements.txt --exists-action w
73+
# - pip install -r test-requirements.txt
74+
# - python -m pytest
75+
# artifacts:
76+
# when: always
77+
# reports:
78+
# junit: output.xml
79+
# tags:
80+
# - base
81+
82+
# sphinx:
83+
# stage: document
84+
# dependencies:
85+
# - pytest
86+
# script:
87+
# - pip install -r requirements.txt --exists-action w
88+
# - pip install -r docs/doc-requirements.txt
89+
# - apt-get update
90+
# - apt-get install make
91+
# - cd docs
92+
# - make html
93+
# - mv _build/html/ ../sphinx
94+
# artifacts:
95+
# paths:
96+
# - sphinx
97+
# tags:
98+
# - base
99+
# only:
100+
# - master
101+
102+
# publish:
103+
# stage: deploy
104+
# dependencies:
105+
# - sphinx
106+
# script:
107+
# - 'which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )'
108+
# - eval $(ssh-agent -s)
109+
# - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
110+
# - mkdir -p ~/.ssh
111+
# - chmod 700 ~/.ssh
112+
# - git config user.email "chris.maclellan@soartech.com"
113+
# - git config user.name "Chris MacLellan (automated triskele)"
114+
# - git remote rm public
115+
# - git remote add public git@github.com:apprenticelearner/AL_Core.git
116+
# - ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
117+
# - git push public HEAD:soartech-dev
118+
# tags:
119+
# - base
120+
# only:
121+
# - master
122+
123+
# pages:
124+
# stage: deploy
125+
# dependencies:
126+
# - sphinx
127+
# - coverage
128+
# script:
129+
# - mv sphinx public/
130+
# - mv coverage public/coverage
131+
# environment:
132+
# name: pages
133+
# url: https://hq-git.soartech.com/apprentice/apprentice
134+
# artifacts:
135+
# paths:
136+
# - public
137+
# tags:
138+
# - base
139+
# only:
140+
# - master
141+
142+
# dockerize:
143+
# stage: deploy
144+
# script:
145+
# - docker build -t hq-git.soartech.com:4567/apprentice/apprentice .
146+
# - docker push hq-git.soartech.com:4567/apprentice/apprentice
147+
# tags:
148+
# - shell
149+
# only:
150+
# - master
151+
152+
153+
# pypi:
154+
# stage: deploy
155+
# dependencies:
156+
# - pytest
157+
# script:
158+
# - pip install twine
159+
# - python setup.py sdist bdist_wheel
160+
# - twine upload --repository-url https://nexus.soartech.com:8443/nexus/repository/pypi-internal/ dist/*
161+
# tags:
162+
# - base
163+
# only:
164+
# - master

README.md

Lines changed: 0 additions & 160 deletions
This file was deleted.

0 commit comments

Comments
 (0)