forked from pmeinhardt/tlr
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
38 lines (26 loc) · 1.93 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
sudo: required
services:
- docker
language: python
python:
- "2.7"
# env:
# - DATABASE_URL= "mysql://tailr:tailr@db/tailr" COOKIE_SECRET= "secret" GITHUB_CLIENT_ID= "d7c043982588fa436096" GITHUB_SECRET= "422fe669f1b219cb03a9bcb907eca99716475797"
before_install:
# - docker build -t pmeinhardt/tailr .
# - docker run -d -e MYSQL_ROOT_PASSWORD=root -e MYSQL_USER=tailr -e MYSQL_PASSWORD=tailr -e MYSQL_DATABASE=tailr --name mariadb mariadb
# - docker run --rm -it --link mariadb:db -e COOKIE_SECRET=9ac3a5c953d301a45a672f1c4860eebb66b92f7e353534fcd3f119d75858d1d2769f9d6cbb8e1f45971e08b0b790d01af942ca404275fac29933743f3f9b0cfd02d0668a090ec6ebb79f59ce85f7428c38013cef229bdff750ff10b97c18f54461dbb373276e3b506138fec3daba3cb6cab758ccd1b74f7889c42b57565d7b26 -e GITHUB_CLIENT_ID=acf046b97fe6ab6a314b -e GITHUB_SECRET=0f0ce67c7dce0753dcdb8a45bd5773686e28d725 -e DATABASE_URL=mysql://tailr:tailr@db/tailr -e DEBUG=1 pmeinhardt/tailr python prepare.py
# - docker run --rm -it --link mariadb:db -e COOKIE_SECRET=secret -e GITHUB_CLIENT_ID=d7c043982588fa436096 -e GITHUB_SECRET=422fe669f1b219cb03a9bcb907eca99716475797 -e DATABASE_URL=mysql://tailr:tailr@db/tailr -e DEBUG=1 pmeinhardt/tailr python prepare.py
# - docker run -d --link mariadb:db -e COOKIE_SECRET=secret -e GITHUB_CLIENT_ID=xxx -e GITHUB_SECRET=xxx -e DATABASE_URL=mysql://tailr:tailr@db/tailr -p 127.0.0.1:8000:5000 pmeinhardt/tailr
- docker-compose up -d
- docker-compose run -e DATABASE_URL="mysql://tailr:tailr@db/tailr" -e COOKIE_SECRET="secret" -e GITHUB_CLIENT_ID="d7c043982588fa436096" -e GITHUB_SECRET="422fe669f1b219cb03a9bcb907eca99716475797" --rm app python prepare.py
install:
- pip install -r requirements.txt
before_script:
- docker ps
- docker exec -i -t -d tlr_app_1 bash
# - docker exec -i -t $(docker ps | grep vagrant_app | awk '{ print $1}') bash
script:
- docker exec -it tlr_app_1 python test/tests.py
# - python test/tests.py -v
# notifications: