aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
blob: 9cfc238b7544bcdee830bb407aa9ce12425c2551 (plain)
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
language: go
os: linux

# fuse on travis
sudo: required
dist: bionic # Ubuntu 18.04 "Bionic", https://docs.travis-ci.com/user/reference/bionic/

env:
  - GO111MODULE=on

git:
  depth: 300

# Build with the lastest relevant Go versions
# Relevance is determined from:
# * https://golang.org/dl/
# * https://packages.debian.org/search?keywords=golang&searchon=names&exact=1&suite=all&section=all
# * https://packages.ubuntu.com/search?keywords=golang&searchon=names&exact=1&suite=all&section=all
go:
  - 1.11.x # Debian 10 "Buster"
  - 1.12.x # Ubuntu 19.10
  - 1.13.x # Debian 11 "Bullseye"
  - stable

before_install:
  - sudo apt-get install -qq fuse
  - sudo modprobe fuse
  - sudo chmod 666 /dev/fuse
  - sudo chown root:$USER /etc/fuse.conf

script:
  - openssl version
  - df -Th / /tmp
  - env GO111MODULE=on go build
  - ./build-without-openssl.bash
  - ./build.bash
  - ./gocryptfs -speed
  - ./test.bash
  - make root_test
  - ./crossbuild.bash
  - echo "rebuild with locked dependencies"
  - go mod vendor
  - ./build.bash -mod=vendor