-
Notifications
You must be signed in to change notification settings - Fork 24
/
.travis.yml
37 lines (29 loc) · 987 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
os:
- linux
sudo: required
dist: trusty
services:
- docker
# safelist
branches:
only:
- master
env:
- CONFIG="Repo tests" SCRIPT="configure-repos-test.sh" BETA_REPO="false" ARCH=x86_64 CI_DOCKER_IMAGE=professorkaos64/steamos
- CONFIG="Package tests" SCRIPT="package-tests.sh" BETA_REPO="false" ARCH=x86_64 CI_DOCKER_IMAGE=professorkaos64/steamos
# Pull containers from Docker Hub.
before_install:
- docker pull $CI_DOCKER_IMAGE
script:
- cd "$TRAVIS_BUILD_DIR"
# Start the container from the image and perform tests.
# linux32 will correct any false reporting of non-32bit.
# Note: The below command clones the source into the specified folder, but the command passed
# will start in /, so be sure to cd into "steamos-tools" in test scripts.
script:
- "docker run -i -v \"${PWD}:/steamos-tools\" $CI_DOCKER_IMAGE /bin/bash -c \"/steamos-tools/travis/$SCRIPT\""
# Email on failure only
notifications:
email:
on_success: never
on_failure: never