Skip to content

Commit

Permalink
Merge pull request #999 from rsalevsky/travis
Browse files Browse the repository at this point in the history
Improve Travis Configuration
  • Loading branch information
Rick Salevsky authored Jul 3, 2019
2 parents 06fe6ee + 7a50ee0 commit 43bd257
Showing 1 changed file with 25 additions and 17 deletions.
42 changes: 25 additions & 17 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
sudo: required
language: bash
dist: xenial
services:
- docker

Expand All @@ -9,22 +9,30 @@ env:
# If you want to see a list of installed packages in the doc-ci docker container, set to TRUE
- LIST_PACKAGES=0

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'
matrix:
include:
- name: "Validate Commit Message"
language: python
script:
- pip install gitlint
- wget https://raw.githubusercontent.com/SUSE-Cloud/automation/master/scripts/jenkins/gitlint.ini
- gitlint --commits master..HEAD -C gitlint.ini
- name: "Validate Documentation"
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:
Expand Down

0 comments on commit 43bd257

Please sign in to comment.