Skip to content

Commit

Permalink
Unify env configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
medikoo committed Jul 3, 2019
1 parent dd57fae commit a02d261
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ branches:
- master # Do not build PR branches
- /^v\d+\.\d+\.\d+$/ # Ensure to build release tags

env: SLS_IGNORE_WARNING=* # Default env
env:
global:
- SLS_IGNORE_WARNING=*
- FORCE_COLOR=1 # Ensure colored output for processes combined with '&&'

stages:
- name: Test
Expand All @@ -29,28 +32,19 @@ jobs:
- name: 'Prettier check updated, Lint updated, Unit Tests - Linux - Node.js v12'
if: type = pull_request
node_js: 12
env:
- SLS_IGNORE_WARNING=*
- FORCE_COLOR=1 # TTY is lost as processes are combined '&&'
# Combine with '&&' to not continue on fail
script: npm run prettier-check-updated && npm run lint-updated && npm test

# master branch and version tags
- name: 'Lint, Unit Tests - Linux - Node.js v12'
if: type != pull_request
node_js: 12
env:
- SLS_IGNORE_WARNING=*
- FORCE_COLOR=1 # TTY is lost as processes are combined '&&'
# Combine with '&&' to not continue on fail
script: npm run lint && npm test

- name: 'Unit Tests - Windows - Node.js v12'
os: windows
node_js: 12
env:
- SLS_IGNORE_WARNING=*
- FORCE_COLOR=1 # For some reason on Windows colors support is not detected
before_script:
# Ensure Python 2 in Windows enviroment (Ruby is already preinstalled)
- |
Expand All @@ -62,9 +56,6 @@ jobs:
- name: 'Isolated Unit Tests, Package Integration Tests - Linux - Node.js v10'
node_js: 10
env:
- SLS_IGNORE_WARNING=*
- FORCE_COLOR=1 # TTY is lost as processes are combined '&&'
# Combine with '&&' to not continue on fail
script: npm run test-isolated && npm run integration-test-run-package

Expand All @@ -79,8 +70,6 @@ jobs:
name: 'Integration Tests - Linux - Node.js v12'
node_js: 12
env:
- SLS_IGNORE_WARNING=*
- FORCE_COLOR=1 # TTY is lost as processes are combined '&&'
# AWS_ACCESS_KEY_ID
- secure: Ia2nYzOeYvTE6qOP7DBKX3BO7s/U7TXdsvB2nlc3kOPFi//IbTVD0/cLKCAE5XqTzrrliHINSVsFcJNSfjCwmDSRmgoIGrHj5CJkWpkI6FEPageo3mdqFQYEc8CZeAjsPBNaHe6Ewzg0Ev/sjTByLSJYVqokzDCF1QostSxx1Ss6SGt1zjxeP/Hp4yOJn52VAm9IHAKYn7Y62nMAFTaaTPUQHvW0mJj6m2Z8TWyPU+2Bx6mliO65gTPFGs+PdHGwHtmSF/4IcUO504x+HjDuwzW2itomLXZmIOFfGDcFYadKWzVMAfJzoRWOcVKF4jXdMoSCOviWpHGtK35E7K956MTXkroVoWCS7V0knQDovbRZj8c8td8mS4tdprUA+TzgZoHet2atWNtMuTh79rdmwoAO+IAWJegYj62Tdfy3ycESzY+KxSaV8kysG9sR3PRFoWjZerA7MhLZEzQMORXDGjJlgwLaZfYVqjlsGe5p5etFBUTd0WbFgSwOKLoA2U/fm7WzqItkjs3UWaHuvFVvwYixGxjEVmVczS6wa2cdGpHtVD9H7km4fPEzljHqQ26v0P5e8eylgqLF2IB6mL7UqGFrAtrMvAgN/M3gnq4dTs/wq1AJIOxEP7YW7kc0NAldk8vUz6t5GzCPNcuukxAku91Awnh0twxgUywatgJLZPY=
# AWS_SECRET_ACCESS_KEY
Expand Down

0 comments on commit a02d261

Please sign in to comment.