forked from lightmetrica/lightmetrica-v3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
57 lines (55 loc) · 1.75 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
language: bash
matrix:
include:
- name: "Build on Linux environment with Docker"
os: linux
sudo: required
services: docker
before_install:
- git clone https://[email protected]/hi2p-perim/lightmetrica-v3-scenes-2.git scenes
script:
- docker build -t lm3 .
- docker run --rm -it -v $TRAVIS_BUILD_DIR:/lm3 lm3 sh -c \
'cd /lightmetrica-v3/functest &&
mv .lmenv_docker .lmenv &&
python run_all.py &&
cp -r executed_functest /lm3/doc/ &&
cd /lm3/doc &&
mkdir _build &&
doxygen &&
make html &&
touch _build/html/.nojekyll'
deploy:
provider: pages
repo: lightmetrica/lightmetrica-v3-doc
local_dir: doc/_build/html
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: false
target-branch: master
on:
branch: master
- name: "Build on Windows environment"
os: windows
dist: 1803-containers
# Workaround for https://travis-ci.community/t/choco-install-hangs-forever/307/20
filter_secrets: false
before_install:
- |
choco install openssl.light
choco install miniconda3
export PATH="/c/Tools/miniconda3/Scripts:$PATH"
# Calling activate command with conda>=4.6.9 in bash on Windows is not working.
# For workaround, we stick to 4.6.8.
# https://github.com/conda/conda/issues/8506
conda install -y -n base conda=4.6.8
cd ${TRAVIS_BUILD_DIR}
conda env create -f environment_win.yml
source activate lm3_dev
script:
- |
cd ${TRAVIS_BUILD_DIR}
cmake -G "Visual Studio 15 2017 Win64" -H. -B_build -DCMAKE_BUILD_TYPE=Release
cmake --build _build --config Release
cd _build/bin/Release
./lm_test.exe