-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lgtm.yml
42 lines (40 loc) · 2.23 KB
/
.lgtm.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
extraction:
cpp:
prepare:
packages:
- g++
- libgtk2.0-dev
- libgl1-mesa-dev
- mesa-common-dev
- freeglut3-dev
- libcurl4-openssl-dev
- libc6
after_prepare:
- wget -q https://github.com/wxWidgets/wxWidgets/releases/download/v3.1.1/wxWidgets-3.1.1.tar.bz2 -O $LGTM_WORKSPACE/wxWidgets-3.1.1.tar.bz2
- cd $LGTM_WORKSPACE
- tar jxf wxWidgets-3.1.1.tar.bz2
- cd wxWidgets-3.1.1
- ./configure --prefix=$LGTM_WORKSPACE/wx-3.1.1 --enable-shared=no --enable-stl=yes --enable-debug=no --with-gtk=2 --with-libjpeg=builtin --with-libpng=builtin --with-regex=builtin --with-libtiff=builtin --with-zlib=builtin --with-expat=builtin --without-libjbig --without-liblzma --without-gtkprint --with-libnotify=no --with-libmspack=no --with-gnomevfs=no --with-opengl=yes --with-sdl=no --with-cxx=11
- make -j2 all install
- export WXMSW3=$LGTM_WORKSPACE/wx-3.1.1
- (cd ../ && pwd)
- git clone --depth=1 https://github.com/google/googletest $LGTM_WORKSPACE/build/googletest
- export GTEST=$LGTM_WORKSPACE/build/googletest
- export LKDIR=$LGTM_WORKSPACE/build/lk
- export WEXDIR=$LGTM_WORKSPACE/build/wex
- export SSCDIR=$LGTM_WORKSPACE/build/ssc
- export SAMNTDIR=$LGTM_SRC
- git clone --depth=1 https://github.com/NREL/lk $LKDIR;
- git clone --depth=1 https://github.com/NREL/wex $WEXDIR
- git clone --depth=1 https://github.com/NREL/ssc $SSCDIR
- export PATH=$PATH:$HOME/wx-3.1.1/bin
configure:
command:
- mkdir ${GTEST}/build; cd ${GTEST}/build; cmake -DCMAKE_CXX_FLAGS=-std=c++11 ..; make;
- mkdir $LKDIR/build && cd $LKDIR/build && cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build . -j 4 --target lk
- mkdir $WEXDIR/build && cd $WEXDIR/build && cmake .. -DCMAKE_BUILD_TYPE=Release && cmake --build . -j 4 --target wex
- mkdir ${SSCDIR}/build; cd ${SSCDIR}/build; cmake .. -DCMAKE_BUILD_TYPE=Release -DSAM_SKIP_TESTS=1 -DSAM_SKIP_TOOLS=1 -DSAMAPI_EXPORT=0; cmake --build . -j 4 --target ssc
- mkdir $SAMNTDIR/build && cd $SAMNTDIR/build && cmake .. -DCMAKE_BUILD_TYPE=Release -DSAMAPI_EXPORT=0
index:
build_command:
cd $SAMNTDIR/build && make -j 4