-
Notifications
You must be signed in to change notification settings - Fork 63
/
.travis.yml
72 lines (70 loc) · 2.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
dist: xenial
language: python
python:
- 3.7
services:
- docker
jobs:
include:
- stage: Test
name: "Integration Tests"
install:
# Building Docker images
- docker-compose -f ./docker-compose-int-test.yml build -m 8g
script:
# Integration tests
- docker-compose -f ./docker-compose-int-test.yml run tester bash -c "sh /root/wait_pennai.sh && npm test"
- docker-compose -f ./docker-compose-int-test.yml down
- stage: Test
name: "Unit Tests for Webapp"
install:
- pip install coveralls
# Building Docker images
- docker-compose -f ./docker-compose-unit-test.yml build -m 8g
script:
# Node/js Unit Tests
- docker run -v $(pwd):/appsrc -w /appsrc pennai_unit_tester mocha machine/test/test.js
- docker run -v $(pwd):/appsrc -v /appsrc/lab/webapp/node_modules -w /appsrc/lab/webapp/ pennai_unit_tester npm run test
##- docker run -v $(pwd):/appsrc -v /appsrc/lab/node_modules -w /appsrc/lab/ pennai_unit_tester npm run test
# Python Unit Tests
- "docker run -v $(pwd):/appsrc -w /appsrc pennai_unit_tester
coverage run -m nose -s -v
machine/test/learn_tests.py
lab/pyutils/tests/*.py
ai/tests/test_a*.py
ai/tests/lab_*.py
ai/tests/test_re*.py
ai/tests/test_k*utils.py"
#- coverage combine
#- docker cp pennai_unit_tester:/.coverage ./
#- coveralls
- stage: Test
name: "Unit Tests for scikit-learn API"
install:
# Building Docker images
- docker-compose -f ./docker-compose-unit-test.yml build -m 8g
script:
# Unit tests
- docker run -v $(pwd):/appsrc -w /appsrc pennai_unit_tester nosetests -s -v ai/tests/test_sklearn_api.py
#deploy:
#provider: pypi
#username: "__token__"
#password: $PYPI_TOKEN
#on:
#tags: true
# - stage: "Docs"
# name: "Doc Builder"
# install:
# - docker-compose -f ./docker-compose-doc-builder.yml build -m 8g
# script:
# # Building docs
# - docker-compose -f ./docker-compose-doc-builder.yml up --abort-on-container-exit --force-recreate
# # Tell GitHub not to use jekyll to compile the docs
# - sudo touch target/ai_docs/html/.nojekyll
# deploy:
# provider: pages
# cleanup: false
# github_token: $GH_TOKEN # Set in travis-ci.org dashboard, marked secure
# on:
# branch: master
# local_dir: target/ai_docs/html/