Skip to content
Snippets Groups Projects
Commit 23de2143 authored by Ray Andrew's avatar Ray Andrew
Browse files

Initial commit

parent 15e6b782
No related merge requests found
Pipeline #5030 failed
...@@ -3,6 +3,15 @@ image: php:fpm-alpine ...@@ -3,6 +3,15 @@ image: php:fpm-alpine
services: services:
- mysql:5.7 - mysql:5.7
stages:
- test
- deploy
cache:
paths:
- vendor/
variables: variables:
HTTP_PROXY: "http://girvandip:91538874@cache.itb.ac.id:8080" HTTP_PROXY: "http://girvandip:91538874@cache.itb.ac.id:8080"
MYSQL_DATABASE: lkqueue MYSQL_DATABASE: lkqueue
...@@ -11,7 +20,7 @@ variables: ...@@ -11,7 +20,7 @@ variables:
before_script: before_script:
- export http_proxy=${HTTP_PROXY} - export http_proxy=${HTTP_PROXY}
- export https_proxy=${HTTP_PROXY} - export https_proxy=${HTTP_PROXY}
- apk update && apk add ca-certificates wget autoconf alpine-sdk && update-ca-certificates - apk update && apk add icu-dev ca-certificates wget autoconf alpine-sdk && update-ca-certificates
- pear config-set http_proxy ${HTTP_PROXY} - pear config-set http_proxy ${HTTP_PROXY}
- pear update-channels && pear upgrade --force - pear update-channels && pear upgrade --force
- wget http://pecl.php.net/get/xdebug-2.6.0.tgz - wget http://pecl.php.net/get/xdebug-2.6.0.tgz
...@@ -21,17 +30,30 @@ before_script: ...@@ -21,17 +30,30 @@ before_script:
- ./configure - ./configure
- make && make install - make && make install
- cd .. - cd ..
# - pecl install xdebug
- docker-php-ext-enable xdebug - docker-php-ext-enable xdebug
- docker-php-ext-configure intl - docker-php-ext-configure intl
- docker-php-ext-install json intl mysqli - docker-php-ext-install json intl mysqli
- docker-php-ext-enable json intl mysqli debug - docker-php-ext-enable json intl mysqli debug
- curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer - curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin/ --filename=composer
- http_proxy=${HTTP_PROXY} https_proxy="" composer global require hirak/prestissimo - http_proxy=${HTTP_PROXY} composer global require hirak/prestissimo
- http_proxy=${HTTP_PROXY} https_proxy="" composer install - http_proxy=${HTTP_PROXY} composer install
- php importersql.php - php importersql.php
test: test:
script: script:
- composer run test - composer test
pages:
stage: deploy
dependencies:
- test
script:
- rm -rf public
- mv report public
artifacts:
paths:
- public
expire_in: 30days
only:
- master
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment