forked from SUSE/doc-ses
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (31 loc) · 1.33 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
sudo: required
language: bash
services:
- docker
env:
global:
- secure: eGRVxeM7zMVK+0JcrAGGt55rpYsTLdxo57pSisEAxaDgwP6wgRMEPMd6jcu773dv7MtWgycbc+ITbeiO9O3cUII7O+r/NcdV4/enOBSsl6/Fx3oSFYnGYVmVwK8cjlYv+FS18O8k/IGyHlUIe4N8IzoZNgvrEThTQ2gdzY5EE4U=
- COMMIT_AUTHOR_MAIL: "[email protected]"
# If you want to see a list of installed packages in the doc-ci docker container, set to TRUE
- LIST_PACKAGES=0
# List branches that should be published on GitHub pages, omit the maintenance/ prefix
- PUBLISH_PRODUCTS="master ses4 ses5.5 ses6"
before_install:
- echo "TRAVIS_PULL_REQUEST=$TRAVIS_PULL_REQUEST" >> env.list
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH" >> env.list
- echo "SOURCE_BRANCH=$SOURCE_BRANCH" >> env.list
- echo "TRAVIS_REPO_SLUG=$TRAVIS_REPO_SLUG" >> env.list
- echo "LIST_PACKAGES=$LIST_PACKAGES" >> env.list
- echo "PUBLISH_PRODUCTS=\"$PUBLISH_PRODUCTS\"" >> env.list
- echo "ENCRYPTED_PRIVKEY_SECRET=$ENCRYPTED_PRIVKEY_SECRET" >> env.list
- echo "TRAVIS_COMMIT=$TRAVIS_COMMIT" >> env.list
- wget https://raw.githubusercontent.com/openSUSE/doc-ci/develop/travis/travis.sh
- ls
- echo "Building docker image"
- docker build -t sle-doc-image .
script:
- docker run --rm -it sle-doc-image /bin/bash -c '/bin/bash travis.sh'
notifications:
email:
on_success: change
on_failure: always