-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
50 lines (46 loc) · 1.88 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
sudo: required
dist: focal
language: python
python: 2.7
services:
- docker
addons:
postgresql: "12"
apt:
packages:
- postgresql-12
- postgresql-client-12
git:
depth: 1
install:
- docker build -t $BUILDING .
- echo "docker build complete!"
- psql -U travis -c 'create database test_idigbio;'
- psql -U travis -c "DROP SCHEMA public CASCADE;" test_idigbio
- docker run -d --net host --name minio-test -e "MINIO_ACCESS_KEY=${ACCESS_KEY}" -e "MINIO_SECRET_KEY=${SECRET_KEY=}" minio/minio:RELEASE.2017-07-24T18-27-35Z server /export
script:
- docker run --rm -it --net host
-e "IDB_STORAGE_ACCESS_KEY=${ACCESS_KEY}"
-e "IDB_STORAGE_SECRET_KEY=${SECRET_KEY}"
-e "IDB_STORAGE_HOST=localhost:9000"
$BUILDING
pytest -p no:cacheprovider --pguser=travis --pgpass="" tests/idb
after_success:
# upload new docker images
- docker login --username="$DOCKER_USERNAME" --password="$DOCKER_PASSWORD"
deploy:
- provider: script
script: bash scripts/docker-push.sh
on:
all_branches: true
env:
global:
- DOCKER_IMAGE=idigbio/idb-backend
- BUILDING=$DOCKER_IMAGE:$TRAVIS_COMMIT
- ACCESS_KEY="testAccessKey"
- SECRET_KEY="testSecretKey"
- PGPORT=5433
- PGUSER=travis
notifications:
slack:
secure: "GVJcqmhKww+74MaAKiSPIf2oPxEFp0PoYHzdzL0xw5xd62OiJkrcdzOsiZ5DQxLlgU+MgWrxcxJmunMXOUvR7gt1V1WjuvYsmJ6+bC4/AU81Qr0z5BDANZRX7O8yA/WLvPyE5hsJQWAyBL0NFvkKbxzw/qKlaaoh+uUXI2FLA+LMq6kuW1BYyQuFsoX/14842ppRETrxK5uVAft7c+Egh68Tet5xO5lry3bBFZ0F75Jg5nuzgAgq3OcOe8Luo8FuekX75tBjT0hBNSM+Kn9LOPx25O6tRfivCJn1quOPNSNhet8zbeYecnSevW49VLtWi34fLX6rIsPcvGZg1Z5q1MjvxqDtuIEnhLBeR/8+hK+dLu6MP0YGcG4jBELEH13WlkmJJcH1X+DmRLK1tkgwWhJlW1RJ/QHPoqsMKMNFxS4aDenFGiYXSvv7skX8pr+i2QW1j55V6AU55OCvhsrgyHwFXlA+1ItU5geCVvmLscg8RXF7HuTrZrN/UxLjDVPAjY4rHS2ccZx1g3vo+K0OWafKk6yOi9J7rfwT+OGCMGv3Q57i1ShDIHvmfzfJmsjhtRCvKowwUrw2/Udean/ncdcRLvTTv0Xn+ioxnWAyvWo7UMdXj7YeHvp4bT9pY2eSjfHjB6Fe7S3vWC5zzLc0BDYouxkysv+j0EvP1vx84t4="