Skip to content

Commit 901896f

Browse files
filipesilvadanielronnkvist
authored andcommitted
ci: speed up travis start time
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.
1 parent 2e53dfd commit 901896f

File tree

3 files changed

+776
-921
lines changed

3 files changed

+776
-921
lines changed

.travis.yml

+7-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
dist: trusty
2-
sudo: required
2+
sudo: false
33

44
language: node_js
55

6+
cache:
7+
yarn: true
8+
directories:
9+
- ./node_modules
10+
611
env:
712
global:
813
- DBUS_SESSION_BUS_ADDRESS=/dev/null
@@ -58,13 +63,7 @@ before_install:
5863
# Use a virtual display.
5964
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export DISPLAY=:99.0; fi
6065
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sh -e /etc/init.d/xvfb start; fi
61-
# Install latest chrome.
62-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CHROME_BIN=/usr/bin/google-chrome; fi
63-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get update; fi
64-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo apt-get install -y libappindicator1 fonts-liberation; fi
65-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb; fi
66-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then sudo dpkg -i google-chrome*.deb; fi
67-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then echo "--no-sandbox" > ~/.config/chrome-flags.conf; fi
66+
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then export CHROME_BIN=chromium-browser; fi
6867
# Install yarn.
6968
- curl -o- -L https://yarnpkg.com/install.sh | bash
7069
- export PATH="$HOME/.yarn/bin:$PATH"

scripts/test-licenses.js

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ const ignoredPackages = [
7373
'[email protected]', // Looks like MIT
7474
'[email protected]', // BSD, but doesn't list it in package.json
7575
'[email protected]', // MIT, but doesn't list it in package.json
76+
'[email protected]', // LGPL-2.1, listed as LGPL-2.1+.
7677
'[email protected]', // MIT, license but it's not listed in package.json.
7778
'[email protected]', // MIT, but doesn't list it in package.json
7879
'[email protected]', // MIT, but doesn't list it in package.json

0 commit comments

Comments
 (0)