forked from libretro/parallel-n64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (21 loc) · 1.22 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
sudo: required
language: minimal
env:
global:
- IMAGE=registry.gitlab.com/bleemsync-dev/docker-autodevops-buildenvs/mmc-crosscompiler-docker-image:latest_internal
- TARGETBUILD=parallel_n64_libretro
matrix:
- TARGET=nesc CLOUD_DIR=NESC
- TARGET=psc CLOUD_DIR=PSC
services:
- docker
before_script:
- docker login -u ${GITLAB_USER} -p ${GITLAB_PASS} registry.gitlab.com
- docker pull ${IMAGE}
- docker run -it -d --name crosscomp ${IMAGE} bash
- docker exec -it --privileged crosscomp bash -c "git clone --depth=50 --branch=master https://github.com/${TRAVIS_REPO_SLUG} ${TRAVIS_REPO_SLUG}"
script:
- docker exec -it --privileged crosscomp bash -c "cd ${TRAVIS_REPO_SLUG} && classic_make_${TARGET} Makefile clean"
- docker exec -it --privileged crosscomp bash -c "cd ${TRAVIS_REPO_SLUG} && classic_make_${TARGET} Makefile"
- docker exec -it --privileged crosscomp bash -c "chown 600 ~/.keys/release_private_key.pem"
- docker exec -it --privileged crosscomp bash -c "cd ${TRAVIS_REPO_SLUG} && echo -e 'cd /var/www/html/cores/Automated_Builds/${CLOUD_DIR}\nput ${TARGETBUILD}.so' | sftp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i ~/.keys/release_private_key.pem [email protected]"