Example Travis CI YML script with multiple languages

In the Travis CI YML script here, we specify Go version 1.10 as the primary programming language and then Node.js as the secondary language. We install Node.js dependencies in the before_install life cycle event and then we run a Golang test followed by a Node.js test:

language: gogo:     - "1.10"env:    - NODE_VERSION="6"before_install:    - nvm install $NODE_VERSIONinstall:    - npm installscript:    - go test    - npm test

If you would like to further explore this example, then check out the multiple-languages repository (https://github.com/packtci/multiple-languages).

Get Hands-On Continuous Integration and Delivery now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.