Move to Ubuntu Trusty on Travis CI and remove apt add-on

Two reasons here:

1) Ubuntu Precise is reaching EOL, though Travis CI may take care of it.
we still can move to Trusty earlier as I didn't see any dependency of
Precise here.

2) g++4.8 is built-in in Travis CI's Ubuntu Trusty environment, which
means we don't need to spend time on adding ppa repository, apt update
and apt install, could save time on the CI.
This commit is contained in:
Peter Dave Hello 2017-04-18 13:13:06 +08:00
parent 450159a462
commit f1f0cb7aef

View file

@ -1,14 +1,9 @@
language: node_js language: node_js
dist: trusty
node_js: node_js:
- 6 - 6
- 7 - 7
- lts/boron - lts/boron
env: env:
- CXX=g++-4.8 - CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
cache: yarn cache: yarn