-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
78 lines (66 loc) · 1.77 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
73
74
75
76
77
78
language: python
cache:
pip: true
directories:
- chalice/.chalice/venv
- daemons/dss-sync/.chalice/venv
- daemons/dss-index/.chalice/venv
python: 3.6
dist: trusty
addons:
apt:
packages:
- jq
- moreutils
- gettext
install:
- pip install -r requirements-dev.txt
- wget -q ${ES_DOWNLOAD_URL}
- tar -xzf elasticsearch-${ES_VERSION}.tar.gz
- wget -q http://us-east-1.ec2.archive.ubuntu.com/ubuntu/pool/main/m/make-dfsg/make_4.1-6_amd64.deb
- mkdir make4
- dpkg -x make*.deb make4
- export PATH=$(pwd)/make4/usr/bin:$PATH
before_script:
- export -n _JAVA_OPTIONS # https://github.com/travis-ci/travis-ci/issues/8408
- source environment
script:
- python3 scripts/swagger_auth.py --travis
- make $MAKE_ARGS
after_success:
- if [[ "$TRAVIS_EVENT_TYPE" == "push" ]]; then bash <(curl -s https://codecov.io/bash); fi
if: tag IS blank # don't build tags
stages:
- name: test
if: env(TRAVIS_DSS_INTEGRATION_MODE) != 1
- name: integration_test
if: env(TRAVIS_DSS_INTEGRATION_MODE) = 1
jobs:
include:
- stage: test
env:
- MAKE_ARGS="-j4 parallel_test"
- stage: test
env:
- MAKE_ARGS="-j1 tests/test_search.py"
- stage: test
env:
- MAKE_ARGS="-j1 tests/test_indexer.py"
- DSS_UNITTEST_OPTS="-b -v TestAWSIndexer"
- stage: test
env:
- MAKE_ARGS="-j1 tests/test_indexer.py"
- DSS_UNITTEST_OPTS="-b -v TestGCPIndexer"
- stage: test
env:
- MAKE_ARGS="-j1 tests/test_subscriptions.py"
- stage: integration_test
env:
- MAKE_ARGS="-j1 integration_test"
env:
global:
- ES_VERSION=5.4.2
- ES_DOWNLOAD_URL=https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-${ES_VERSION}.tar.gz
- DSS_TEST_ES_PATH=./elasticsearch-${ES_VERSION}/bin/elasticsearch
- DSS_ES_TIMEOUT=30
- DSS_UNITTEST_OPTS="-v -b"