-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
56 lines (46 loc) · 3.38 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
sudo: required
dist: xenial
language: python
services:
- docker
matrix:
include:
- env:
- DOCKER_JOB_NAME='surreal_py3'
- DOCKER_IMAGE='ducandu/surreal:travis'
before_install:
- docker pull ${DOCKER_IMAGE}
- docker run -d --rm --name ${DOCKER_JOB_NAME} -v $(pwd):/surreal ${DOCKER_IMAGE} /bin/bash -c 'while true; do sleep 1; done';
script:
# Test Algo learning.
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/algos/learning_up_to_1min/test_dqn2015_short_tasks.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/algos/learning_up_to_1min/test_dddqn_short_tasks.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/algos/learning_up_to_1min/test_sac_short_tasks.py';
# Test Algo functionality.
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/algos/functionality/test_dads_functionality.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/algos/functionality/test_dqn2015_functionality.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/algos/functionality/test_dddqn_functionality.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/algos/functionality/test_sac_functionality.py';
# Test core lib.
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/core/test_flatten_alongside.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/core/test_spaces.py';
# Test Components.
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_decays.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_distribution_adapters.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_distributions.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_fifo_buffer.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_memories_generically.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_neg_log_likelihood_loss.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_networks.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_optimizers.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_preprocessors.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_prioritized_replay_buffer.py';
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/components/test_replay_buffer.py';
# Test the Envs.
- docker exec ${DOCKER_JOB_NAME} /bin/sh -c 'cd /surreal && python -m pytest -s surreal/tests/envs';
notifications:
email:
recipients:
on_success: never
on_failure: never