Skip to content

Commit

Permalink
WIP: switch continuous integration system to Drone CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nodiscc committed Feb 23, 2021
1 parent 9db1ccd commit 0a6c917
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
---
kind: pipeline
type: docker
name: php-7.4

clone:
disable: true

steps:
- name: test-php-7.4
image: nodiscc/drone-ci-base:7.4
commands:
- whoami
- id
- echo $PWD
- ls -ld $PWD
- ls -ld /drone
- echo $HOME
- git clone https://github.com/nodiscc/Shaarli.git .
- git checkout $DRONE_COMMIT
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
# install/update composer and php dependencies
- composer config --unset platform && composer config platform.php 7.4
- composer update
# - PATH=${PATH//:\.\/node_modules\/\.bin/}
# run tests
- make clean
- make check_permissions
- make code_sniffer
- make all_tests

---
kind: pipeline
type: docker
name: php-7.3

clone:
disable: true

steps:
- name: test-php-7.3
image: nodiscc/drone-ci-base:7.3
commands:
- git clone https://github.com/nodiscc/Shaarli.git .
- git checkout $DRONE_COMMIT
- phpenv config-rm xdebug.ini || echo 'No xdebug config.'
- whoami
- id
- echo $PWD
- ls -ld $PWD
- ls -ld /drone
- echo $HOME
# install/update composer and php dependencies
- composer config --unset platform && composer config platform.php 7.3
- composer update
# - PATH=${PATH//:\.\/node_modules\/\.bin/}
# run tests
- make clean
- make check_permissions
- make code_sniffer
- make all_tests

0 comments on commit 0a6c917

Please sign in to comment.