forked from localstack/localstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
59 lines (48 loc) · 1.26 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
sudo: required
language: python
services:
- docker
python:
- "3.6"
branches:
only:
- master
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"
addons:
apt:
packages:
- oracle-java8-installer
env:
global:
- JAVA_HOME=/usr/lib/jvm/java-8-oracle
install:
- make reinstall-p3
- make init
- make prepare-java-tests-if-changed
script:
- set -e # fail fast
# run tests using Python 3
- DEBUG=1 LAMBDA_EXECUTOR=docker TEST_ERROR_INJECTION=1 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 USE_SSL=1 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