Trigger a build in our meta repository

For full stack testing.
This commit is contained in:
Robert Schäfer 2018-12-10 15:44:09 +01:00
parent bed0f819ff
commit 4ba03d1881
3 changed files with 11 additions and 1 deletions

View File

@ -12,6 +12,7 @@ env:
- DOCKER_COMPOSE_VERSION=1.23.2
before_install:
- scripts/run_fullstack_tests.sh # trigger full stack testing in a different repository
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose

View File

@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
echo "See me deployed at $1 :)"

9
scripts/run_fullstack_tests.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [[ -v TRAVIS_TOKEN ]]; then
# You need a Travis token to trigger the build on our meta repository.
# This token will not be available on forks of this repo.
curl -L https://raw.githubusercontent.com/Human-Connection/Human-Connection/master/scripts/trigger_build.sh > trigger_build.sh
chmod +x trigger_build.sh
./trigger_build.sh
fi