Skip to content

Commit

Permalink
ci: speed up travis start time
Browse files Browse the repository at this point in the history
The `trusty` env on travis now supports container based builds: https://docs.travis-ci.com/user/trusty-ci-environment/

Also adds cache for node_modules, and updates yarn lock.

This should improve start up time.
  • Loading branch information
filipesilva committed Jun 22, 2017
1 parent da273a8 commit dbbede8
Show file tree
Hide file tree
Showing 3 changed files with 776 additions and 921 deletions.
15 changes: 7 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
dist: trusty
sudo: required
sudo: false

language: node_js

cache:
yarn: true
directories:
- ./node_modules

env:
global:
- DBUS_SESSION_BUS_ADDRESS=/dev/null
Expand Down Expand Up @@ -58,13 +63,7 @@ before_install:
# Use a virtual display.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
# Install latest chrome.
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CHROME_BIN=/usr/bin/google-chrome; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libappindicator1 fonts-liberation; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo dpkg -i google-chrome*.deb; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "--no-sandbox" > ~/.config/chrome-flags.conf; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CHROME_BIN=chromium-browser; fi
# Install yarn.
- curl -o- -L https://yarnpkg.com/install.sh | bash
- export PATH="$HOME/.yarn/bin:$PATH"
Expand Down
1 change: 1 addition & 0 deletions scripts/test-licenses.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ const ignoredPackages = [
'extsprintf@1.0.2', // Looks like MIT
'formatio@1.1.1', // BSD, but doesn't list it in package.json
'indexof@0.0.1', // MIT, but doesn't list it in package.json
'jschardet@1.4.2', // LGPL-2.1, listed as LGPL-2.1+.
'map-stream@0.1.0', // MIT, license but it's not listed in package.json.
'mime@1.2.11', // MIT, but doesn't list it in package.json
'ms@0.7.1', // MIT, but doesn't list it in package.json
Expand Down
Loading

0 comments on commit dbbede8

Please sign in to comment.