forked from mongoeye/mongoeye
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (39 loc) · 954 Bytes
/
.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
sudo: required
services:
- docker
env:
matrix:
- MONGODB_VERSION=unstable
- MONGODB_VERSION=4.4 COVERALLS="-service=travis-ci" BUILD=true
- MONGODB_VERSION=4.2
- MONGODB_VERSION=4.0
- MONGODB_VERSION=3.6
- MONGODB_VERSION=3.5
- MONGODB_VERSION=3.4
- MONGODB_VERSION=3.2
- MONGODB_VERSION=3.0
- MONGODB_VERSION=2.7.5
matrix:
allow_failures:
- env: MONGODB_VERSION=unstable
script:
- cd _contrib/docker
- docker-compose build
# Generate code coverage and deploy to coveralls.io
- docker-compose run --rm dev make ci
# Cross compilation
- if [ -n "$BUILD" ]; then docker-compose run --rm dev make build; fi
before_deploy:
- cd "$TRAVIS_BUILD_DIR"
- ls -alh "_release"
deploy:
provider: releases
api_key: $GITHUB_DEPLOY_TOKEN
file:
- _release/mongoeye.tar.gz
- _release/mongoeye.zip
skip_cleanup: true
overwrite: true
on:
tags: true
condition: $BUILD = true