-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
49 lines (49 loc) · 2.72 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
services:
- docker
- postgresql
before_install:
- openssl aes-256-cbc -K $encrypted_d303290e7d32_key -iv $encrypted_d303290e7d32_iv
-in keys/id_rsa_observatory_extension.key.enc -out keys/id_rsa_observatory_extension.key
-d
- if [ -f ${CACHE_FILE_BIGMETADATA} ]; then gunzip -c ${CACHE_FILE_BIGMETADATA} | docker load; fi
- if [ ! -d tmp ]; then mkdir tmp; fi
- if [ ! -d tmp/logs ]; then mkdir tmp/logs; fi
install:
- "mkdir -p $CACHE_DIR"
- "if [ ! -f ${CACHE_FILE_BIGMETADATA} ]; then docker pull carto/bigmetadata:1.1 && docker save carto/bigmetadata:1.1 | gzip > ${CACHE_FILE_BIGMETADATA}; fi"
script: make $TEST_SUITE
addons:
postgresql: '9.5'
apt:
packages:
- postgresql-9.5-postgis-2.3
before_script:
- psql -U postgres -c "create extension postgis"
env:
global:
- CACHE_DIR=$HOME/.cache/docker
- CACHE_FILE_BIGMETADATA=$CACHE_DIR/bigmetadata.tar.gz
matrix:
- TEST_SUITE=travis-etl-metadatatest
- TEST_SUITE=travis-etl-unittest
- TEST_SUITE=travis-diff-catalog
cache:
directories:
- $CACHE_DIR
deploy:
provider: s3
access_key_id:
secure: i8cVtwug21ahcACdL9dqeFWn00BNZd/jZGxl+0VBdEm0HNoZB6jLgVgzuj/8OickPFBGhOWzltRDRX6nmGcotvKpSxaHncck83BW6LbGx+EJLRy3Lugbdt3SDxYoImSLFx18PQkI2CEoH24OwXbdPj+GBCYrN3P/GdthdWCQfwt4CZ6PbSgJ/x2TpqqWpKeh9zy+Lx54F3ST71HmAJXULv62oyt62nk3TZICI0lPF2796oWNyt3Lh7HEcLg8QUPFRewfjPMkLrbwvYT62t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0SV6uNK2zuvbU1s3RmT6oEDDU4=
bucket: cartodb-observatory-data
local-dir: catalog/build/html/
upload-dir: catalogs/$TRAVIS_BRANCH
acl: public_read
skip_cleanup: true
on:
repo: CartoDB/bigmetadata
all_branches: true
condition: "$TEST_SUITE = travis-diff-catalog"
after_failure:
- df -h