forked from libretro/parallel-n64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
26 lines (22 loc) · 1.36 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
language: shell
os: linux
env:
global:
- IMAGE=registry.gitlab.com/modmyclassic/docker-autodevops-buildenvs/mmc-crosscompiler-docker-image:latest_internal
- TARGETBUILD=parallel_n64_libretro
jobs:
- 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 --recursive --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 "find ${TRAVIS_REPO_SLUG} -name '*.so' -print -exec xz '{}' \; -exec mv '{}'.xz '{}' \;"
- 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 docker@classicmodscloud.com"