Setup semaphore 2.0 (#3011)

This commit is contained in:
Gautier Hattenberger
2023-03-13 09:27:34 +01:00
committed by GitHub
parent 0844f72932
commit 4ba0f96458
2 changed files with 46 additions and 0 deletions

View 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
View 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: []