powerdns-admin/.travis.yml

24 lines
744 B
YAML
Raw Normal View History

2017-11-02 00:31:50 +00:00
language: python
python:
2018-04-02 06:38:53 +00:00
- "3.5.2"
2017-11-02 00:38:51 +00:00
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'";
2017-11-02 00:31:50 +00:00
install:
2017-11-02 01:15:33 +00:00
- pip install -r requirements.txt
2017-11-02 01:32:51 +00:00
before_script:
- mv config_template.py config.py
- export FLASK_APP=app/__init__.py
- flask db upgrade
- yarn install --pure-lockfile
- flask assets build
2017-11-02 01:15:33 +00:00
script:
- sh run_travis.sh
cache:
yarn: true
services:
- mysql