forked from localstack/localstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (56 loc) · 2.07 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
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
- 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-python2.7 > /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:dotnetcore3.1 > /dev/null &
- nohup docker pull lambci/lambda:20191117-provided > /dev/null &
- nohup docker pull lambci/lambda:java8 > /dev/null &
- nohup docker pull lambci/lambda:python3.8 > /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
# start pulling Docker base image in the background
- nohup docker pull localstack/java-maven-node-python > /dev/null &
- LAMBDA_EXECUTOR=docker-reuse TEST_PATH="tests/integration/test_lambda.py tests/integration/test_integration.py" make test
# build Docker image
- make docker-build
# extract .coverage details from created image
- make docker-cp-coverage
- sed -i 's:/opt/code/localstack:/home/travis/build/localstack/localstack:g' .coverage
# push Docker image (if on master branch)
- make docker-push-master
after_success:
- make coveralls || true
notifications:
email: false