From 105282b6a3f3a54b48709567cabd762c298e7a21 Mon Sep 17 00:00:00 2001 From: Shawn Date: Sun, 9 Dec 2018 23:29:23 -0600 Subject: [PATCH] Migrate to jobs --- .travis.yml | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/.travis.yml b/.travis.yml index 83e7d55f..d1d2ef88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,22 +16,24 @@ cache: #services: # - mysql -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 +jobs: + include: + - stage: "Build" + name: "Build Spee.ch" -install: - - npm i - -script: - - npm run fix - - npm run build - - git diff --exit-code + 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 + install: + - npm i + script: + # - npm run fix + - npm run build