mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-02-05 18:51:00 +08:00
Setup semaphore 2.0 (#3011)
This commit is contained in:
committed by
GitHub
parent
0844f72932
commit
4ba0f96458
23
.semaphore/night-build.yml
Normal file
23
.semaphore/night-build.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
version: v1.0
|
||||
name: Night build
|
||||
agent:
|
||||
machine:
|
||||
type: e1-standard-2
|
||||
os_image: ubuntu2004
|
||||
blocks:
|
||||
- name: Run test
|
||||
task:
|
||||
jobs:
|
||||
- name: test
|
||||
commands:
|
||||
- echo "git config --global --add safe.directory '*'" > test_all.sh
|
||||
- echo "ln -s /usr/bin/python3 /usr/bin/python" >> test_all.sh
|
||||
- echo "make test_all_confs" >> test_all.sh
|
||||
- docker/run.sh -it paparazziuav/pprz-ci bash test_all.sh
|
||||
prologue:
|
||||
commands:
|
||||
- 'sudo rm -rf /home/semaphore/{.phpbrew,.phpunit,.kerl,.kiex,.lein,.nvm,.npm,.rbenv}'
|
||||
- docker pull paparazziuav/pprz-ci
|
||||
- checkout
|
||||
- git submodule update --init --force --recursive
|
||||
dependencies: []
|
||||
23
.semaphore/semaphore.yml
Normal file
23
.semaphore/semaphore.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
version: v1.0
|
||||
name: Basic test
|
||||
agent:
|
||||
machine:
|
||||
type: e1-standard-2
|
||||
os_image: ubuntu2004
|
||||
blocks:
|
||||
- name: Run test
|
||||
task:
|
||||
jobs:
|
||||
- name: test
|
||||
commands:
|
||||
- echo "git config --global --add safe.directory '*'" > test.sh
|
||||
- echo "ln -s /usr/bin/python3 /usr/bin/python" >> test.sh
|
||||
- echo "make test" >> test.sh
|
||||
- docker/run.sh -it paparazziuav/pprz-ci bash test.sh
|
||||
prologue:
|
||||
commands:
|
||||
- 'sudo rm -rf /home/semaphore/{.phpbrew,.phpunit,.kerl,.kiex,.lein,.nvm,.npm,.rbenv}'
|
||||
- docker pull paparazziuav/pprz-ci
|
||||
- checkout
|
||||
- git submodule update --init --force --recursive
|
||||
dependencies: []
|
||||
Reference in New Issue
Block a user