mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 22:50:26 +00:00
24 lines
744 B
YAML
24 lines
744 B
YAML
language: python
|
|
python:
|
|
- "3.5.2"
|
|
before_install:
|
|
- sudo apt-key adv --fetch-keys http://dl.yarnpkg.com/debian/pubkey.gpg
|
|
- echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
|
|
- travis_retry sudo apt-get update
|
|
- travis_retry sudo apt-get install python3-dev libxml2-dev libxmlsec1-dev yarn
|
|
- mysql -e 'CREATE DATABASE pda';
|
|
- mysql -e "GRANT ALL PRIVILEGES ON pda.* to pda@'%' IDENTIFIED BY 'changeme'";
|
|
install:
|
|
- pip install -r requirements.txt
|
|
before_script:
|
|
- mv config_template.py config.py
|
|
- export FLASK_APP=app/__init__.py
|
|
- flask db upgrade
|
|
- yarn install --pure-lockfile
|
|
- flask assets build
|
|
script:
|
|
- sh run_travis.sh
|
|
cache:
|
|
yarn: true
|
|
services:
|
|
- mysql |