Merge pull request #735 from nodejs/test-travis-ci-config

Test Travis CI config and template consistency
This commit is contained in:
Peter Dave Hello 2018-05-16 11:30:56 +08:00 committed by GitHub
commit 1e68152b61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 3 deletions

View File

@ -58,12 +58,21 @@ jobs:
- TEST: Shell Check
script: shellcheck *.sh
- stage: Test
env:
- TEST: .travis.yml and travis.yml.template consistency
language: generic
script:
- ./update.sh
- git diff --stat --exit-code .travis.yml
- stage: Deploy
script: ./generate-stackbrew-pr.sh
env:
secure: "HkgYgawkr/hkg2vURHGOb/JmF6U1e71QQsd0HXJ1UJh6WBiFJOrjomCMHZGHnpyopdRna++up8dISBqM2X+EiLAr9yWdRXy72oMP9X42M0ccnja/3E5KYYXMkETS50JnUhMCOt2xRZW5/ojqrHukqRo0YIjIu+P0U0VsZ4QIsng="
# Docker Build #
- stage: Build
env:
- NODE_VERSION: "10"

View File

@ -56,6 +56,14 @@ jobs:
- TEST: Shell Check
script: shellcheck *.sh
- stage: Test
env:
- TEST: .travis.yml and travis.yml.template consistency
language: generic
script:
- ./update.sh
- git diff --stat --exit-code .travis.yml
- stage: Deploy
script: ./generate-stackbrew-pr.sh
env:

View File

@ -77,11 +77,11 @@ function add_stage() {
local variant=$1
shift
echo ' - stage: Build
echo '
- stage: Build
env:
- NODE_VERSION: "'"$version"'"
- VARIANT: "'"$variant"'"
' >>.travis.yml
- VARIANT: "'"$variant"'"' >>.travis.yml
}
echo '#### DO NOT MODIFY. THIS FILE IS AUTOGENERATED ####