-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
73 lines (71 loc) · 3.21 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
branches:
only:
- dev
language: cpp
matrix:
include:
- os: linux
dist: bionic
install:
- pyenv global 3.7.1 2.7.15
- ./installers/install_bazel.sh
- ./installers/install_nodejs.sh && nvm alias default v10.15.3 && nvm use default
- ./installers/install_python_deps.sh --user --dev
- ./installers/install_emsdk.sh
- echo 'build:wasm_binding --sandbox_writable_path=/home/travis/.emscripten_cache.lock' >> .bazelrc.user
script:
- bazel test -c fastbuild --test_tag_filters -benchmark //felicia/...
- python tools/run_felicia_example.py
- bazel build --config py_binding -c fastbuild //felicia/python:felicia_py.so
- bazel build --config node_binding -c fastbuild //felicia/js:felicia_js_node
- source toolchain/emscripten/emsdk/emsdk_env.sh &&
bazel build --config wasm_binding -c fastbuild //felicia/wasm:felicia_wasm.js.tar
after_failure:
- find bazel-out/ -name "test.log" | xargs cat
- os: osx
osx_image: xcode10.2
compiler: clang
env:
- PYTHON2_BIN_PATH=/usr/local/bin/python
- PATH="/Users/travis/.pyenv:$PATH"
before_install:
- eval "$(pyenv init -)"
install:
- pyenv install 3.7.1 && pyenv global 3.7.1
- ./installers/install_bazel.sh
- ./installers/install_nodejs.sh && nvm alias default v10.15.3 && nvm use default
- ./installers/install_python_deps.sh --user --dev
- ./installers/install_emsdk.sh
- echo 'build --cpu darwin_x86_64' >> .bazelrc.user
- echo 'build:wasm_binding --sandbox_writable_path=/Users/travis/.emscripten_cache.lock' >> .bazelrc.user
script:
- bazel test -c fastbuild --test_tag_filters -benchmark //felicia/...
- python tools/run_felicia_example.py
- bazel build --config py_binding -c fastbuild //felicia/python:felicia_py.so
- bazel build --config node_binding -c fastbuild //felicia/js:felicia_js_node
- source toolchain/emscripten/emsdk/emsdk_env.sh &&
bazel build --config wasm_binding -c fastbuild //felicia/wasm:felicia_wasm.js.tar
after_failure:
- find bazel-out/ -name "test.log" | xargs cat
- os: windows
env:
- USE_CLANG_CL=1
- PYTHON_BIN_PATH=/c/Python3/python.exe
- PYTHON2_BIN_PATH=/c/ProgramData/chocolatey/bin/python.exe
- PATH="$PATH:/c/Python3:/c/Python3/Scripts:/c/Program Files/nodejs:/c/Users/travis/AppData/Roaming/npm"
install:
- choco install python3 --version 3.7.1 --params "/InstallDir:C:\Python3"
- ./installers/install_python_deps.sh --user --dev
- choco install bazel --version 0.25.0
- choco install nodejs.install --version 10.15.3
script:
- bazel test -c fastbuild --test_tag_filters -benchmark,-manual //felicia/...
- $PYTHON_BIN_PATH tools/run_felicia_example.py
- bazel build --config py_binding -c fastbuild //felicia/python:felicia_py_pyd
- bazel build --config node_binding -c fastbuild //felicia/js:felicia_js_node
after_failure:
- find bazel-out/ -name "test.log" | xargs cat
notifications:
email:
on_success: always
on_failure: always