forked from arangodb/go-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
63 lines (52 loc) · 1.57 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
sudo: required
before_install:
- |
mkdir -p $HOME/resources
for i in {0..3}
do
if ! [ -f "$HOME/resources/itzpapalotl-v1.2.0.zip" ]; then
curl -L0 -o $HOME/resources/itzpapalotl-v1.2.0.zip "https://github.com/arangodb-foxx/demo-itzpapalotl/archive/v1.2.0.zip"
fi
SHA=$(sha256sum $HOME/resources/itzpapalotl-v1.2.0.zip | cut -f 1 -d " ")
if [ "${SHA}" = "86117db897efe86cbbd20236abba127a08c2bdabbcd63683567ee5e84115d83a" ]; then
break
fi
$HOME/resources/itzpapalotl-v1.2.0.zip
done
- |
if ! [ -f "$HOME/resources/itzpapalotl-v1.2.0.zip" ]; then
travis_terminate 1
fi
services:
- docker
language: go
go:
- 1.20.5
env:
jobs:
- TEST_SUITE=run-unit-tests ALWAYS=1
- TEST_SUITE=run-tests-single
- TEST_SUITE=run-tests-cluster
- TEST_SUITE=run-tests-resilientsingle
- TEST_SUITE=run-v2-tests-single
- TEST_SUITE=run-v2-tests-cluster
- TEST_SUITE=run-v2-tests-resilientsingle
global:
- ARANGODB=gcr.io/gcr-for-testing/arangodb/enterprise-preview:3.11.1
- GOIMAGE=gcr.io/gcr-for-testing/golang:1.20.5
- ALPINE_IMAGE=gcr.io/gcr-for-testing/alpine:3.17
- STARTER=gcr.io/gcr-for-testing/arangodb/arangodb-starter:0.15.7
- TEST_DISALLOW_UNKNOWN_FIELDS=false
before_script:
- |
set -e
if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ ! -z "$ALWAYS" ]; then
make tools
make linter vulncheck
fi
script:
- |
set -e
if [ "$TRAVIS_PULL_REQUEST" != "false" ] || [ ! -z "$ALWAYS" ]; then
make $TEST_SUITE TEST_RESOURCES="$HOME/resources/" VERBOSE=1;
fi