forked from alephdata/aleph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (27 loc) · 1.1 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
sudo: required
services:
- docker
env:
global:
- ALEPH_DATABASE_NAME=aleph
- ALEPH_DATABASE_URI=postgresql://localhost/$ALEPH_DATABASE_NAME
- OAUTH_KEY=fake
- OAUTH_SECRET=fake
- DOCKER_COMPOSE_VERSION=1.16.1
before_install:
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- sudo sysctl -w vm.max_map_count=262144
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- sudo echo "ALEPH_DATABASE_NAME=$ALEPH_DATABASE_NAME\nALEPH_DATABASE_URI=$ALEPH_DATABASE_URI\nOAUTH_KEY=$OAUTH_KEY\nOAUTH_SECRET=$OAUTH_SECRET" >> aleph.env
- docker --version
- docker-compose --version
install:
- docker-compose -f docker-compose.dev.yml build
- docker-compose -f docker-compose.dev.yml up -d postgres elasticsearch
- sleep 8
script:
- docker-compose -f docker-compose.dev.yml run --rm app /aleph/contrib/devwrapper.sh /aleph/contrib/test.sh