forked from polserver/ClassicDistro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (40 loc) · 1.27 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
language: cpp
sudo: false
git:
depth: 1
matrix:
include:
- os: linux
compiler: gcc
addons:
apt:
sources: ['ubuntu-toolchain-r-test']
packages: ['g++-7']
env: CXX_P=g++-7 CC_P=gcc-7
before_script:
- echo 'Configure...' && echo -en 'travis_fold:start:script.configure\\r'
- wget https://github.com/polserver/polserver/archive/master.zip
- unzip master.zip
- cd polserver-master/bin-build
- export CXX=$CXX_P
- export CC=$CC_P
- cmake -DBUILD_ALL=OFF -DONLY_ECOMPILE=ON ..
- make -j 2
- cp ../bin/ecompile ../../scripts/
- cp ../pol-core/support/scripts/*.em ../../scripts/
- cd ../../
- echo "ModuleDirectory=scripts" >>scripts/ecompile.cfg
- echo "IncludeDirectory=scripts" >>scripts/ecompile.cfg
- echo "PolScriptRoot=scripts" >>scripts/ecompile.cfg
- echo "PackageRoot=pkg" >>scripts/ecompile.cfg
- echo "DisplaySummary=1" >>scripts/ecompile.cfg
- echo "DisplayWarnings=1" >>scripts/ecompile.cfg
- echo "CompileAspPages=1" >>scripts/ecompile.cfg
- echo -en 'travis_fold:end:script.configure\\r'
script:
- echo 'Build...' && echo -en 'travis_fold:start:script.build\\r'
- scripts/ecompile -A -T2
- echo -en 'travis_fold:end:script.build\\r'
notifications:
email: