|
|
|
|
@ -9,16 +9,14 @@ before_install:
|
|
|
|
|
- echo "==========================================================="
|
|
|
|
|
- echo "Upgrade linux packages"
|
|
|
|
|
- echo "==========================================================="
|
|
|
|
|
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
|
|
|
|
|
- sudo sed -i 's|http://us-east-1.ec2.archive.ubuntu.com|https://mirrors.speedtests.ml|g' /etc/apt/sources.list
|
|
|
|
|
- sudo sed -i 's|http://security.ubuntu.com|https://mirrors.speedtests.ml|g' /etc/apt/sources.list
|
|
|
|
|
- sudo sed -i 's|http://us-central1.gce.archive.ubuntu.com|https://mirrors.speedtests.ml|g' /etc/apt/sources.list
|
|
|
|
|
- sudo sed -i 's|http://ppa.launchpad.net|https://launchpad.speedtests.ml|g' /etc/apt/sources.list.d/*.list
|
|
|
|
|
- sudo apt update
|
|
|
|
|
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
|
|
|
|
|
- sudo apt upgrade
|
|
|
|
|
- sudo apt install -y nodejs
|
|
|
|
|
install:
|
|
|
|
|
- sudo chown -R root:root *
|
|
|
|
|
- sudo chmod -R 755 *
|
|
|
|
|
- echo "==========================================================="
|
|
|
|
|
- echo "Comoposer install"
|
|
|
|
|
@ -27,8 +25,8 @@ install:
|
|
|
|
|
before_script:
|
|
|
|
|
- npm i -g phplint
|
|
|
|
|
script:
|
|
|
|
|
- sudo cp config/.config.php.example config/.config.php
|
|
|
|
|
- cp config/.config.php.example config/.config.php
|
|
|
|
|
- phplint '**/*.php' '!vendor/**'
|
|
|
|
|
- sudo php xcat update
|
|
|
|
|
- sudo php xcat initQQWry
|
|
|
|
|
- sudo php xcat initdownload
|
|
|
|
|
- php xcat initdownload
|
|
|
|
|
- php xcat initQQWry
|
|
|
|
|
- php xcat update
|
|
|
|
|
|