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:
|
2018-08-20 10:21:32 +00:00
|
|
|
- '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'
|
2017-11-02 00:38:51 +00:00
|
|
|
- 'travis_retry sudo apt-get update'
|
2018-08-20 10:21:32 +00:00
|
|
|
- 'travis_retry sudo apt-get install python3-dev libxml2-dev libxmlsec1-dev yarn'
|
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:
|
2018-08-20 10:21:32 +00:00
|
|
|
- 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:
|
2018-08-20 10:21:32 +00:00
|
|
|
- sh run_travis.sh
|
|
|
|
cache:
|
|
|
|
yarn: true
|