forked from FAForever/server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (33 loc) · 889 Bytes
/
.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
language: python
python:
- "3.7"
cache: pip
sudo: required
dist: bionic
services:
- docker
env:
global:
- FAF_DB_VERSION="v93"
before_install:
- git clone https://github.com/FAForever/db.git faf-db
&& pushd faf-db
&& git checkout "${FAF_DB_VERSION}"
&& ./ci/bootstrap.sh
&& popd
- docker exec -i faf-db mysql -uroot -pbanana faf -e "select * from login;"
- python -m pip install pipenv
install:
- pipenv sync --dev
- docker build --build-arg TRAVIS_TAG -t faf-python-server .
script:
- scripts/run_tests_with_coverage.sh
- sed -i.bak s#/code/#$(pwd)/#g .coverage
- coveralls
after_success:
- export REPO=faforever/faf-python-server
- if [ -n "${TRAVIS_TAG}" ]; then
docker login -u="${DOCKER_USERNAME}" -p="${DOCKER_PASSWORD}";
docker tag faf-python-server ${REPO}:${TRAVIS_TAG};
docker push ${REPO};
fi