-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
28 lines (24 loc) · 1.14 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
language: bash
dist: bionic # On 20/05/2020, focal is still not listed on https://docs.travis-ci.com/user/reference/overview/ :(
env:
- DOCKER_CLI_EXPERIMENTAL=enabled
before_install:
- sudo rm -rf /var/lib/apt/lists/*
- curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
- lsb_release -cs
- sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
- sudo apt-get update
- sudo apt-get -y -o Dpkg::Options::="--force-confnew" install docker-ce
- docker version
- BUILD_NUMBER="${TRAVIS_BUILD_NUMBER}"
- >
if [[ "${TRAVIS_BRANCH}" == "master" && "${TRAVIS_PULL_REQUEST}" == "false" ]]; then
echo "We are building the master branch: version is official version."
BUILD_BETA_VERSION=""
else
echo "We are not building the master branch (or we are in a PR mode). Building a beta version then"
BUILD_BETA_VERSION="-beta-travis" #${TRAVIS_BUILD_NUMBER}"
fi
- echo "TRAVIS_BRANCH=${TRAVIS_BRANCH} - DOCKER_USERNAME=${DOCKER_USERNAME} - BUILD_BETA_VERSION=${BUILD_BETA_VERSION}"
script:
- BETA_VERSION=${BUILD_BETA_VERSION} make