This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
/
.travis.yml
59 lines (49 loc) · 1.58 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
dist: trusty
language: java
jdk: oraclejdk8
branches:
only:
- master
- /^build\/.*$/
- kubernetes_integration
cache:
directories:
- $HOME/.apt-cache
- $HOME/.local
- $HOME/.m2
env:
global:
- MESOS_NATIVE_JAVA_LIBRARY=/usr/lib/libmesos.so
- CLJ_HTTP_ASYNC_POOL_TEST_DURATION_MULTIPLIER=5
before_install:
- pyenv global 3.6
- echo "Sudo-enabled build? ${TRAVIS_SUDO}"
matrix:
allow_failures:
- name: 'Cook Scheduler benchmark tests'
fast_finish: true
include:
- name: 'Cook Scheduler, CLI, and JobClient unit tests'
before_script:
- ./cli/travis/setup.sh
- cd scheduler && ./travis/setup.sh
script:
- pushd ../jobclient/java && mvn test
- popd && pushd ../jobclient/python && python -m pytest
- popd && pushd ../cli && python -m pytest
- popd && lein with-profile +test test :all-but-benchmark
- name: 'Cook Scheduler integration tests with Cook Executor and Docker'
services: docker
install: sudo ./travis/install_mesos.sh
before_script: cd integration && ./travis/prepare_integration.sh
script:
- export PYTHONPATH=$PWD/../jobclient/python
- ./travis/run_integration.sh --executor=cook --image=python:3.5
- name: 'Cook Scheduler Simulator tests'
services: docker
install: sudo ./travis/install_mesos.sh
before_script: cd simulator && ./travis/prepare_simulation.sh
script: ./travis/run_simulation.sh
- name: 'Cook Executor tests'
before_script: cd executor && ./travis/setup.sh
script: ./travis/run_tests.sh