This commit is contained in:
Grzegorz Leoniec 2018-12-10 13:16:03 +01:00
commit 1700bff648
No known key found for this signature in database
GPG Key ID: 3AA43686D4EB1377
2 changed files with 28 additions and 1 deletions

View File

@ -9,15 +9,17 @@ services:
- docker
env:
- DOCKER_COMPOSE_VERSION=1.23.2
- COMMON_BRANCH=master
before_install:
- export DOCKER_COMPOSE_VERSION=1.23.2
- 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
- sudo mv docker-compose /usr/local/bin
install:
- git submodule foreach "git checkout $COMMON_BRANCH || echo 'Branch \`$COMMON_BRANCH\` does not exist, falling back to master.'"
- docker-compose -f Nitro-Backend/docker-compose.yml up -d
- docker-compose -f Nitro-Web/docker-compose.yml up -d
- yarn global add cypress wait-on

25
scripts/trigger_build.sh Executable file
View File

@ -0,0 +1,25 @@
#!/usr/bin/env bash
body=$(cat<< EOF
{
"request": {
"branch":"e2e",
"message": "Triggered by \`$TRAVIS_REPO_SLUG\` on \`$TRAVIS_BRANCH\`",
"config": {
"merge_mode": "deep_merge",
"env": {
"COMMON_BRANCH": "$TRAVIS_BRANCH"
}
}
}
}
EOF
)
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token $TRAVIS_TOKEN" \
-d "$body" \
https://api.travis-ci.com/repo/Human-Connection%2FHuman-Connection/requests