forked from localstack/localstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
66 lines (57 loc) · 1.98 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
language: python
dist: xenial
python:
- "3.7"
services:
- docker
branches:
only:
- master
addons:
apt:
packages:
- openjdk-8-jre-headless
before_install:
- "sudo apt-get purge openjdk-6*"
- "sudo apt-get purge openjdk-7*"
- "sudo apt-get purge oracle-java7-*"
- "sudo apt-get purge python2.7"
- "nvm install 6; nvm alias default node"
- "sudo useradd localstack -s /bin/bash"
env:
global:
- JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
- BOTO_CONFIG=/dev/null
install:
- set -e
- # install under python 3
- PIP_CMD=pip3 VENV_OPTS="-p '`which python3`'" make install-basic
- make init
- make prepare-java-tests-if-changed
- nohup docker pull lambci/lambda:20191117-nodejs8.10 > /dev/null &
- nohup docker pull lambci/lambda:20191117-ruby2.5 > /dev/null &
- nohup docker pull lambci/lambda:20191117-python3.6 > /dev/null &
- nohup docker pull lambci/lambda:20191117-dotnetcore2.0 > /dev/null &
- nohup docker pull lambci/lambda:20191117-provided > /dev/null &
- nohup docker pull lambci/lambda:java8 > /dev/null &
script:
- set -e # fail fast
# run tests using Python 3 (limit the set of tests to reduce test duration)
- DEBUG=1 LAMBDA_EXECUTOR=docker USE_SSL=1 TEST_ERROR_INJECTION=1 TEST_PATH="tests/integration/test_lambda.py tests/integration/test_integration.py" make test
# run tests using Python 2
# Note: we're not using multiple versions in the top-level "python" configuration,
# but instead reinstall using 2.x here, as that allows us to re-use some cached libs etc.
- "make reinstall-p2 > /dev/null"
- make init
- LAMBDA_EXECUTOR=docker-reuse TEST_PATH="tests/integration/test_lambda.py tests/integration/test_integration.py" make test
# build Docker image
- make docker-build
# run Java tests
# TODO: re-enable java tests when fixed!
# - make test-java-if-changed; true
# push Docker image (if on master branch)
- make docker-push-master
after_success:
- make coveralls || true
notifications:
email: false