forked from nuodb/nuodb-dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (37 loc) · 2.08 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
language: c
env:
global:
- NUODB_HOME=/opt/nuodb
- TZ=America/New_York
- NUO_ADD_DOMAIN_PASS=yes
- NUO_START_AGENT=yes
matrix:
- NUO_VERSION=3.1.2.1
- NUO_VERSION=3.2.0.2
before_install:
- echo madvise | sudo tee /sys/kernel/mm/transparent_hugepage/enabled >/dev/null
- echo madvise | sudo tee /sys/kernel/mm/transparent_hugepage/defrag >/dev/null
# There's a bug in the Trusty images where this gives a syntax error
# See https://github.com/travis-ci/travis-ci/issues/8906
- sudo mv /opt/jdk_switcher/jdk_switcher.sh /tmp
- wget -q "http://download.nuohub.org/nuodb-ce_${NUO_VERSION}_amd64.deb" --output-document=/var/tmp/nuodb.deb
- sudo dpkg -i /var/tmp/nuodb.deb
install:
- sudo apt-get update
- sudo apt-get install mono-devel mono-gmcs mono-complete cli-common-dev nunit-console
before_script:
- if [ "$NUO_ADD_DOMAIN_PASS" = yes ]; then printf '\ndomainPassword = bird\n' | sudo tee -a "$NUODB_HOME"/etc/default.properties >/dev/null; fi
- if [ "$NUO_START_AGENT" = yes ]; then sudo service nuoagent start; fi
- $NUODB_HOME/bin/nuodbmgr --broker localhost --password bird --command "start process sm host localhost database test archive /var/tmp/nuodb initialize true"
- sleep 5
- $NUODB_HOME/bin/nuodbmgr --broker localhost --password bird --command "start process te host localhost database test options '--dba-user dba --dba-password goalie'"
- sleep 5
script:
- xbuild /p:TargetFrameworkProfile="" /p:Configuration=Release NuoDb.Data.Client.3.5/Mono.NuoDb.Data.Client_3.5.csproj
- sudo gacutil -i NuoDb.Data.Client.3.5/bin/Release/NuoDb.Data.Client.dll
- xbuild /p:TargetFrameworkProfile="" /p:Configuration=Release NuoDb.Data.Client/Mono.NuoDb.Data.Client_4.0.csproj
- sudo gacutil -i NuoDb.Data.Client/bin/Release/NuoDb.Data.Client.dll
- xbuild /p:TargetFrameworkProfile="" /p:Configuration=Release ConsoleSample/ConsoleSample.csproj
- ConsoleSample/bin/Release/ConsoleSample.exe test
- xbuild /p:TargetFrameworkProfile="" /p:Configuration=Release NUnitTestProject/Mono.NUnitTestProject.csproj
- mono NUnitTestProject/bin/Release/NUnitTestProject.exe