-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
114 lines (113 loc) · 4.01 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
language: cpp
matrix:
include:
- os: windows
name: "windows"
env:
- MSBUILD_PATH="/C/Program Files (x86)/MSBuild/14.0/Bin:/C/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin"
script:
- choco install vcbuildtools -ia "/InstallSelectableItems Win81SDK_CppBuildSKUV1;VisualCppBuildTools_ATLMFC_SDK"
- export PATH=$MSBUILD_PATH:$PATH
- cd oactobjs32
- curl -L -O 'https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.zip'
- 7z x -bd boost_1_64_0.zip
- cd boost_1_64_0
- ./bootstrap.bat
- ./b2.exe toolset=msvc-14.0 link=static runtime-link=static threading=multi --with-date_time
- cd ..
- cd ..
- cd anypiab
- MSBuild.exe
- cd ..
- cd anypia32
- MSBuild.exe
- name: "linux-anypiab"
os: linux
dist: bionic
addons:
apt:
packages: libboost-date-time-dev
script:
- mkdir anypiab/build
- cd anypiab/build
- cmake ..
- make
- name: "mac-anypiab"
os: osx
osx_image: xcode11.4
addons:
homebrew:
packages:
- cmake
- boost
script:
- mkdir anypiab/build
- cd anypiab/build
- cmake ..
- make
- name: "emscripten-anypiab-mac"
os: osx
osx_image: xcode11.4
addons:
homebrew:
packages:
- cmake
- emscripten
script:
# Needed to use Homebrew's emscripten
- export LLVM=/usr/local/opt/emscripten/libexec/llvm/bin
- export BINARYEN=/usr/local/opt/binaryen
- curl -L -O "https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.zip"
- unzip -q boost_1_64_0.zip
- cd boost_1_64_0
- ./bootstrap.sh
- ./b2 toolset=emscripten link=static runtime-link=static --with-date_time
- export BOOST_INCL=`pwd`
- export BOOST_LIB=`pwd`/stage/lib
- cd ..
- mkdir anypiab/build
- cd anypiab/build
- emcmake cmake -DBOOST_INCLUDEDIR=$BOOST_INCL -DBOOST_LIBRARYDIR=$BOOST_LIB ..
- make -j2
- cd ../..
- mkdir anypiajs/build
- cd anypiajs/build
- emcmake cmake -DBOOST_INCLUDEDIR=$BOOST_INCL -DBOOST_LIBRARYDIR=$BOOST_LIB ..
- make -j2
- os: windows
name: "emscripten-anypiab-windows"
python: "3.8"
before_install:
- choco install python3 --version=3.8
- export PATH="/c/Python38:/c/Python38/Scripts:$PATH"
env:
- MSBUILD_PATH="/C/Program Files (x86)/MSBuild/14.0/Bin:/C/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin"
script:
- python --version
- echo "available python version must be greater than 2.7.13 or pip install certifi"
- git clone https://github.com/emscripten-core/emsdk.git
- cd emsdk
- ./emsdk.bat install latest
- ./emsdk.bat activate latest
- cd ..
- choco install vcbuildtools -ia "/InstallSelectableItems Win81SDK_CppBuildSKUV1;VisualCppBuildTools_ATLMFC_SDK"
- export PATH=$MSBUILD_PATH:$PATH
- cd oactobjs32
- curl -L -O "https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.zip"
- 7z x -bd boost_1_64_0.zip
- cd boost_1_64_0
- ./bootstrap.bat
- ./b2.exe toolset=msvc-14.0 link=static address-model=32 architecture=x86 runtime-link=static threading=multi --layout=versioned --with-date_time
- export BOOST_INCL="`pwd`"
- export BOOST_LIB="`pwd`\stage\lib"
- cd ../..
- cd anypiab
- mkdir build
- cd build
- ../../emsdk/upstream/emscripten/emcmake cmake -DBOOST_ROOT=$BOOST_INCL -DBOOST_LIBRARYDIR=$BOOST_LIB -G "NMake Makefiles" ..
- nmake
- cd ../..
- mkdir anypiajs/build
- cd anypiajs/build
- ../../emsdk/upstream/emscripten/emcmake cmake -DBOOST_ROOT=$BOOST_INCL -DBOOST_LIBRARYDIR=$BOOST_LIB -G "NMake Makefiles" ..
- nmake