forked from nobuyuki83/delfem2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
96 lines (94 loc) · 2.27 KB
/
wercker.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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
box: ubuntu
platform: [email protected]
name: delfem2
command-timeout: 60
no-response-timeout: 30
build:
steps:
- script:
name: install packages
code: |
export DEBIAN_FRONTEND=noninteractive
sudo apt-get clean && apt-get update
sudo apt-get install -y git cmake build-essential
sudo apt-get install -y libxmu-dev libxi-dev xorg-dev
sudo apt-get install -y freeglut3-dev libglfw3-dev libglew-dev
sudo apt-get install -y python3-dev python3-setuptools python3-pip
- script:
name: download submodules
code: |
git submodule init
git submodule update
- script:
name: compile gtest
code: |
cd 3rd_party/googletest
cmake .
make
- script:
name: test_cpp
code: |
cd test_cpp
mkdir buildMake
cd buildMake
cmake ..
make
./runUnitTests
- script:
name: compile glut examples
code: |
cd examples_glut
mkdir buildMake
cd buildMake
cmake ..
make -i
cd ..
- script:
name: compile glfw
code: |
cd 3rd_party/glfw
cmake .
make
- script:
name: compile glfw_old examples
code: |
cd examples_glfwold
mkdir buildMake
cd buildMake
cmake ..
make -i
cd ..
- script:
name: compile glfw examples
code: |
cd examples_glfwnew
mkdir buildMake
cd buildMake
cmake ..
make -i
cd ..
- script:
name: compile python binding
code: |
cd src_pybind
cd core
mkdir buildMake
cd buildMake
cmake ..
make
cd ../../
cd gl
mkdir buildMake
cd buildMake
cmake ..
make
cd ../../
- script:
name: pip install -e .
code: |
pip3 install -e .
- script:
name: python unit test
code: |
pip3 install pytest
pytest -v -s --is_gl=false --ignore=test_py/test_pyqt.py