spee.ch/.travis.yml

45 lines
1.3 KiB
YAML
Raw Normal View History

2018-11-10 23:31:09 -05:00
sudo: true
dist: xenial
#addons:
# apt:
# sources:
# - mysql-5.7-trusty
# packages:
# - mysql-server
# - mysql-client
language: node_js
node_js:
- "lts/*"
cache:
directories:
- "node_modules"
#services:
# - mysql
2018-12-09 23:29:23 -06:00
jobs:
include:
- stage: "Build"
name: "Build and run test environment"
2018-11-10 23:31:09 -05:00
2018-12-09 23:29:23 -06:00
before_install:
# - sudo mysql -e "use mysql; update user set authentication_string=PASSWORD('password') where User='root'; update user set plugin='mysql_native_password';FLUSH PRIVILEGES;"
# - sudo mysql_upgrade -u root -ppassword
# - sudo service mysql restart
# - mysql -u root -ppassword -e 'CREATE DATABASE IF NOT EXISTS lbry;'
# - mysql -u root -ppassword -e "CREATE USER 'lbry'@'localhost' IDENTIFIED BY 'lbry';"
# - mysql -u root -ppassword -e "GRANT ALL ON lbry.* TO 'lbry'@'localhost';"
# - sudo service mysql restart
- dpkg --compare-versions `npm -v` ge 6.4.0 || npm i -g npm@^6.4.0
2018-11-10 23:31:09 -05:00
2018-12-10 00:12:14 -06:00
install:
2018-12-09 23:29:23 -06:00
- npm i
2018-11-10 23:31:09 -05:00
2018-12-10 00:04:34 -06:00
script:
- cp ./cli/defaults/* ./site/config/
- |
2018-12-10 00:20:39 -06:00
echo '{ "sessionKey": "session", "masterPassword": false }' > ./site/private/authConfig.json
2018-12-09 23:29:23 -06:00
# - npm run fix
- npm run build
2018-12-09 23:44:00 -06:00
- npm start &
- sleep 10 # Attempt to collect output for 10 seconds