-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
38 lines (32 loc) · 983 Bytes
/
.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
sudo: required
language: go
services:
- docker
before_install:
- sudo apt-get update
- sudo apt-get install python2.7
- pip2 install pyyaml
- docker pull mongo
install:
- git fetch --unshallow --tags
- export PATH=$PATH:$TRAVIS_BUILD_DIR/bin/:$TRAVIS_BUILD_DIR/scripts
- export DCOMP_BASEDIR=$TRAVIS_BUILD_DIR
- go get ./...
- go get github.com/stretchr/testify/assert
- cmake .
- make
- start_db.sh
- sudo ln -s $TRAVIS_BUILD_DIR/etc/dcomp /etc/dcomp
- sudo ln -s $TRAVIS_BUILD_DIR /dcompdata
- sudo $TRAVIS_BUILD_DIR/bin/dcomp daemon &
- sudo $TRAVIS_BUILD_DIR/bin/dcompestd &
- sed "s/Negotiate/None/" -i /etc/dcomp/conf/dcompauthd.yaml
- sudo $TRAVIS_BUILD_DIR/bin/dcompauthd &
- |-
sed "s#^dockerhost:.*#dockerhost: unix:///var/run/docker.sock#" -i /etc/dcomp/plugins/local/local.yaml
- sudo $TRAVIS_BUILD_DIR/bin/dcomplocalpd &
- sudo $TRAVIS_BUILD_DIR/bin/dcompdmd /etc/dcomp/plugins/local/dmd.yaml &
script:
- go test ./...
- cd Tests/Automatic
- python test.py