forked from threatgrid/ctia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (62 loc) · 3.96 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
67
68
69
70
71
72
language: clojure
lein: 2.7.1
dist: trusty
env:
global:
- JAVA_OPTS="-XX:MaxPermSize=256m"
- LOG_DIR=$HOME/log
- BIN_DIR=$HOME/bin
- LEIN_ROOT=1
- CTIA_MAJOR_VERSION=1
- COMPOSE_URI=https://github.com/docker/compose/releases/download/1.9.0
- COMPOSE_BIN=$HOME/bin/docker-compose-1-9-0
- COMPOSE_LOG=$HOME/log/docker-compose.log
- CTIA_STORE_ES_DEFAULT_HOST=127.0.0.1
- CTIA_STORE_ES_DEFAULT_INDEXNAME=elasticsearch
- CTIA_STORE_ES_DEFAULT_CLUSTERNAME=elasticsearch
- CTIA_HOOK_ES_HOST=127.0.0.1
- CTIA_HOOK_ES_PORT=9200
- CTIA_HOOK_ES_INDEXNAME=elasticsearch
- CTIA_HOOK_REDIS_URI=redis://127.0.0.1:6379
- secure: "Mb9ZqaR3swyk9DONS0dF2MnvvfVHZztKgKuiySUe0dW4SyTZeiJ7g8aKCw/fnX4FgN4mwTelsX118rbVuqG3oEoTynkOA7+h8j1HMG+bZPZfgneQP8v+qJ0kqcp7cO820RpJM8l6vDEU1IxUIvxOI7Tgy0sUAg0qr75LEDjRp9pH/Rccwd1wlCPY55Qv07yxYW+VwCiUR8OSUFBY38fm68SZWzKFM2QwxBgHDwpaJ2VuJtIch8QT2tMtGS8l6Np4YC3r4mFTq6smkeZ+t4fglcIVcAFx+HwtyRqRAioCuuARl6SxF0trvggkHrvMHhFWO33F7tAWpXg3iUo/k+lH9o3dwFoNXx4LAhs4Q081vfeTeUEjHZRLx4QuWZ+9+aAvuVBc/Q4wSGw0INaYxcQv84V3jvbUkXTUZzgPgLEeRebaROvW/HWdBQ+rAi5OZDMsyq9g6odj05qfjjeYN0q+n3Z2TQgHg2fyfSmL4MGNFQLIVqB89WLWsllc9m8bErrZRKAz0+hMXRnCOSQq7ThJA/ets5PKqcNOe93A28E+ExicMq1EFM86tskJB3fHVhZsoJdS5JZwUFFnYY/pGqcADI4vfII0KE1hnZLFO07yG2nPF2NnJa/z1gpUwxfURQoBqc/vX2JMqwnyj7s9HkA9CBH/Kx0xGR3KGF722/fBwLY="
- secure: "gSL3aw4LaBJJjw0GUbzsajFI7wU4Pk7haKXKfj+xthkeGD0a3XnB2yr+DnZfPRpSEo4SyQZl2NGSwg/9J2BduGA51v6jsFfmGIVdafLkOfZpRU7YP7EeUuPyyGNMt6DZ/D6j4z6aVqMLUqJpWylrmc+i40oMZRe4Omt2bO43OC6eF1U77hNeir0BMyhTnU2WmtXGaHpsqc0ImMheyKMWk5pkvc9xmd4+h/zeP1+hKyS5eKZKF0+3XXfDGR3QL2E3qXm0+HwHpNn9Pb8lZ+mzin/iCFsZ7s6HNfzyzT5bKXE/9Msl73+povKUoSWcYZljja4/EsJmOgIPpqn/XyogLqOKp8yHoZ5IQJ6KwGA8MZ7l/JIGutNjUgz6R/1P+79gsvyQsg6qTRMWZsmKxkC9eLhI+nyFNIE/gP/LD0MSEL/FHQKsnhSbAw3vaIW5oSPZyl/4+5J0fINAm3eCtICMZjRkEBXqTAs+DPeruv29OBsrdJoXoZMRef86PEL7QQpZM5EujagndeUgi3Rt0RGOA0wgGNe7Hu2XA9vEV79ICkzhKCAuXrCw7Wv1wyDpzLgraJGQFoA9JZKsWjGm8vK9xUvFc77/1vwNfBBMrnV7YprLxWYpR0lzfzYGNrcDjlcvSyy6FJ/B/IhPRN7BDJ3/LdNS8BjnUXN0XU2mYmgCv3M="
# Cache our Maven deps to be kind to clojars, github, docker images
cache:
directories:
- $HOME/bin
- $HOME/.m2
jdk:
# https://github.com/travis-ci/travis-ci/issues/5227
- oraclejdk8
before_install:
# ES5 needs this
- sudo sysctl -w vm.max_map_count=262144
# create log & bin dir if missing
- mkdir -p $LOG_DIR
- mkdir -p $BIN_DIR
#https://github.com/travis-ci/travis-ci/issues/5227
- echo "127.0.0.1 "`hostname` | sudo tee /etc/hosts
# install docker-compose if not in cache
- if [ ! -f $COMPOSE_BIN ]; then curl -L {$COMPOSE_URI}/docker-compose-`uname -s`-`uname -m` > $COMPOSE_BIN; fi
- chmod +x $COMPOSE_BIN
# install any dependencies required
install:
- source $HOME/.rvm/scripts/rvm
- rvm use 2.2
- gem install deb-s3
- which deb-s3
before_script:
- $COMPOSE_BIN -f containers/test/docker-compose.yml up -d> $COMPOSE_LOG
# Wait ES
- until curl http://127.0.0.1:9200/; do sleep 1; done
services:
- docker
script:
- ./build/run-tests.sh && ./build/debian-package.sh
notifications:
email: false
hipchat:
rooms:
- secure: "Ec3/ASBzCcC+oTDJOcsTb+h2MHSWMZP2PbgZTOvHuf8nOokMU2LUjQi6ptaeMQlESvLPGGp8/b+mOOAaLQI15BrK0M+FaUfBxElHvWMqR9MxpNyprgDvs+0koZn/A6Ewal/eMHFl3IP1afBikDEbQWQJnhOtvgKYDZdX5sya4H9kCdPw+kFnj2CcOGybnIGuGGyZ90pvOsEobW6sYDz3B799YBki1QGcQ+8y9x5icUDV1ZdvhLZj+IP++kATqxyqq4VadF7PgbiBbac0umviiSpqE/RsD5tcAbm1a+57qIrzW1ofLDndUdp56gACOVvpvem0AjSfX3AHj7gYylLRk1KlDquNy55Ue/WfxUwyR59gvvueFlz+lQYcIVV7HDsE6uxQe4AcEUQ1pRdsCEUnPAbOqtouHGyqVyjMv42GDbf5nuPdPLIVodRD8mGfS+NCERB0sl62VFvM/dkJEz2BrLdgqOELwA2qZIZqgbhVTjsG6sVAa7G5t88eByIDKQjZWxq491hKbxPPU46s5/QXEQGTIOr6E+/52E+aRxcKT4232k404Mhga9U7TxLdKT2/VSLYOKU8cVGWHo317e7eJvucWJTSJ90yuCEUM0kyRckwuygZVTxUgql6DXadFVtdAKuNt6ZQM+UNGtnUODwFc/ZZGgMnJEM84+3N1AXaAKU="
template:
- '%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message} (%{build_url})'