-
Notifications
You must be signed in to change notification settings - Fork 3
/
travis.yml
33 lines (27 loc) · 1.1 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
27
28
29
30
31
32
33
language: cpp
services:
- docker
addons:
artifacts:
s3_region: "us-east-1"
paths:
- $HOME/build/NSkelsey/monopticon/build/bin/monopticon.js
- $HOME/build/NSkelsey/monopticon/build/bin/monopticon.wasm
- $HOME/build/NSkelsey/monopticon/build/CMakeCache.txt
- $HOME/build/NSkelsey/monopticon/build/CMakeFiles/CMakeOutput.log
- $HOME/build/NSkelsey/monopticon/build/CMakeFiles/CMakeError.log
env:
global:
- IMAGE="synnick/monopticon-emscripten"
- NAME="webopt"
before_install:
- docker pull $IMAGE
- mkdir -p build
- pwd
- ls -lah build
- docker run --name=$NAME -dt -v `pwd`:/home/build/monopticon -v `pwd`/build:/home/build/out $IMAGE:latest
- docker exec $NAME sudo chown -R build:build /home/build/out
install:
- docker exec $NAME cmake -B out -S monopticon -DCMAKE_TOOLCHAIN_FILE=/home/build/monopticon/toolchains/generic/Emscripten-wasm.cmake -DCMAKE_PREFIX_PATH=/usr/lib/emscripten/system -DCMAKE_INSTALL_PREFIX=/home/build/out/bin/ -DFREETYPE_LIBRARY=/home/build/.emscripten_cache/wasm/libfreetype.a -DImGui_INCLUDE_DIR=/opt/imgui
script:
- docker exec $NAME cmake --build out