spee.ch/.travis.yml

44 lines
1.3 KiB
YAML
Raw Normal View History

2018-11-11 05:31:09 +01:00
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-10 06:29:23 +01:00
jobs:
include:
- stage: "Build"
name: "Build and run test environment"
2018-11-11 05:31:09 +01:00
2018-12-10 06:29:23 +01: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-11 05:31:09 +01:00
2018-12-10 07:12:14 +01:00
install:
2018-12-10 06:29:23 +01:00
- npm i
2018-11-11 05:31:09 +01:00
2018-12-10 07:04:34 +01:00
script:
- cp ./cli/defaults/* ./site/config/
- |
2018-12-10 07:20:39 +01:00
echo '{ "sessionKey": "session", "masterPassword": false }' > ./site/private/authConfig.json
2018-12-10 06:29:23 +01:00
# - npm run fix
- npm run build
2018-12-10 06:44:00 +01:00
- npm start &
- sleep 10 # Attempt to collect output for 10 seconds