You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.3 KiB
YAML
34 lines
1.3 KiB
YAML
language: php
|
|
php:
|
|
# - '5.4'
|
|
# - '5.6'
|
|
- '7.1'
|
|
sudo: enabled
|
|
dist: xenial
|
|
before_install:
|
|
- echo "==========================================================="
|
|
- echo "Upgrade linux packages"
|
|
- echo "==========================================================="
|
|
- sudo sed -i 's|http://us-east-1.ec2.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
|
|
- sudo sed -i 's|http://security.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
|
|
- sudo sed -i 's|http://us-central1.gce.archive.ubuntu.com|https://ubuntu.mirror.noc.one|g' /etc/apt/sources.list
|
|
- sudo sed -i 's|http://ppa.launchpad.net|https://launchpad.proxy.noc.one|g' /etc/apt/sources.list.d/*.list
|
|
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
|
|
- sudo apt upgrade
|
|
- sudo apt install -y nodejs
|
|
- composer config -g repos.packagist composer https://packagist.noc.one
|
|
install:
|
|
- sudo chmod -R 755 *
|
|
- echo "==========================================================="
|
|
- echo "Comoposer install"
|
|
- echo "==========================================================="
|
|
- php composer.phar install
|
|
before_script:
|
|
- npm i -g phplint
|
|
script:
|
|
- cp config/.config.php.example config/.config.php
|
|
- phplint '**/*.php' '!vendor/**'
|
|
- php xcat initdownload
|
|
- php xcat initQQWry
|
|
- php xcat update
|