librw/.travis.yml

44 lines
2.4 KiB
YAML
Raw Normal View History

2018-07-26 02:42:03 +08:00
language: cpp
matrix:
include:
- os: linux
2018-08-09 01:55:45 +08:00
env: TARGET=release_linux-amd64-null
2018-07-26 02:42:03 +08:00
script:
- mkdir -p "$TRAVIS_BUILD_DIR/build"
#- docker build -t librw "$TRAVIS_BUILD_DIR"
#- docker run -v "$TRAVIS_BUILD_DIR:/librw:rw,z" --name librw_instance -d librw sleep infinity
- docker pull librw/librw
- docker run -v "$TRAVIS_BUILD_DIR:/librw:rw,z" -v "$TRAVIS_BUILD_DIR/build:/build:rw,z" --name librw_instance -d librw/librw sleep infinity
- docker exec -u builder librw_instance /bin/bash -c "cd /librw && premake5 gmake && cd /librw/build && make config=$TARGET verbose=1"
- os: linux
2018-08-09 01:55:45 +08:00
env: TARGET=release_linux-amd64-gl3 GFXLIB=glfw
2018-07-26 02:42:03 +08:00
services: docker
script:
- mkdir -p "$TRAVIS_BUILD_DIR/build"
#- docker build -t librw "$TRAVIS_BUILD_DIR"
#- docker run -v "$TRAVIS_BUILD_DIR:/librw:rw,z" --name librw_instance -d librw sleep infinity
- docker pull librw/librw
- docker run -v "$TRAVIS_BUILD_DIR:/librw:rw,z" -v "$TRAVIS_BUILD_DIR/build:/build:rw,z" --name librw_instance -d librw/librw sleep infinity
2018-08-09 01:55:45 +08:00
- docker exec -u builder librw_instance /bin/bash -c "cd /librw && premake5 --gfxlib=$GFXLIB gmake && cd /librw/build && make config=$TARGET verbose=1"
- os: linux
env: TARGET=release_linux-amd64-gl3 GFXLIB=sdl2
services: docker
script:
- mkdir -p "$TRAVIS_BUILD_DIR/build"
#- docker build -t librw "$TRAVIS_BUILD_DIR"
#- docker run -v "$TRAVIS_BUILD_DIR:/librw:rw,z" --name librw_instance -d librw sleep infinity
- docker pull librw/librw
- docker run -v "$TRAVIS_BUILD_DIR:/librw:rw,z" -v "$TRAVIS_BUILD_DIR/build:/build:rw,z" --name librw_instance -d librw/librw sleep infinity
- docker exec -u builder librw_instance /bin/bash -c "cd /librw && premake5 --gfxlib=$GFXLIB gmake && cd /librw/build && make config=$TARGET verbose=1"
2018-07-26 02:42:03 +08:00
- os: linux
2018-08-09 01:55:45 +08:00
env: TARGET=release_ps2
2018-07-26 02:42:03 +08:00
services: docker
script:
- mkdir -p "$TRAVIS_BUILD_DIR/build"
#- docker build -t librw "$TRAVIS_BUILD_DIR"
#- docker run -v "$TRAVIS_BUILD_DIR:/librw:rw,z" --name librw_instance -d librw sleep infinity
- docker pull librw/librw
- docker run -v "$TRAVIS_BUILD_DIR:/librw:rw,z" -v "$TRAVIS_BUILD_DIR/build:/build:rw,z" --name librw_instance -d librw/librw sleep infinity
- docker exec -u builder librw_instance /bin/bash -c "cd /librw && premake5 gmake && cd /librw/build && make config=$TARGET verbose=1"