-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
37 lines (31 loc) · 1.61 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
language: go
dist: bionic
go:
- 1.15.x
env:
- PRINT_MIN=true GOPATH=/home/travis/gopath LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib PKG_CONFIG_PATH=$PKG_CONFIG_PATH:$GOPATH/src/github.com/open-quantum-safe/liboqs-go/.config
before_install:
- sudo apt-get -y install git htop jq pkg-config autoconf automake libtool gcc libssl-dev python3-pytest unzip xsltproc doxygen graphviz make cmake ninja-build xsltproc python3-pytest-xdist
- git clone -b master https://github.com/open-quantum-safe/liboqs.git
- mkdir -p liboqs/build
- cd liboqs/build
- cmake -GNinja -DBUILD_SHARED_LIBS=ON ..
- ninja
- sudo ninja install
- mkdir -p $GOPATH/src/github.com/open-quantum-safe/
- cd $GOPATH/src/github.com/open-quantum-safe/
- git clone https://github.com/open-quantum-safe/liboqs-go
- cd $GOPATH/src/github.com/tcrain/cons
addons:
apt:
update: true
script:
- bash ./bench_example.sh
- travis_wait 40 go test -coverprofile=coverage.txt -covermode=count -timeout=10m -v ./...
#- travis_wait 40 go test -timeout=10m -v -coverprofile=coverage.txt -covermode=atomic ./consensus/cons/mvcons2/...
#- travis_wait go test -timeout=10m -v -coverprofile=coverage.txt -covermode=atomic ./consensus/cons/mvcons2/...
#- travis_wait go test -timeout=10m -v -coverprofile=coverage.txt -covermode=atomic ./consensus/cons/mvcons3/...
#- travis_wait go test -timeout=10m -v -coverprofile=coverage.txt -covermode=atomic ./consensus/cons/rbbcast1/...
#- travis_wait go test -timeout=10m -v -coverprofile=coverage.txt -covermode=atomic ./consensus/cons/rbbcast2/...
after_success:
- bash <(curl -s https://codecov.io/bash)