travis: use build environment from Makefile

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2020-03-26 19:14:07 +01:00
parent 1075f58a72
commit d7523071a0

View file

@ -1,8 +1,6 @@
language: python language: python
sudo: false sudo: false
cache: cache:
- pip
- npm
- directories: - directories:
- $HOME/.cache/pip - $HOME/.cache/pip
@ -10,17 +8,16 @@ addons:
firefox: "latest" firefox: "latest"
install: install:
- ./manage.sh install_geckodriver ~/drivers - make install
- export PATH=~/drivers:$PATH - make gecko.driver
- ./manage.sh npm_packages - make node.env
- ./manage.sh update_dev_packages - local/py3/bin/pip install codecov
- pip install codecov
script: script:
- ./manage.sh styles - make styles
- ./manage.sh grunt_build - make themes
- ./manage.sh tests - make test
after_success: after_success:
- ./manage.sh py_test_coverage - make test.coverage
- codecov - codecov
stages: stages:
@ -44,7 +41,7 @@ jobs:
install: true install: true
script: script:
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- ./manage.sh docker_build push - local/py3/bin/activate; ./manage.sh docker_build push
after_success: true after_success: true
notifications: notifications: