/
.travis.yml
37 lines (31 loc) · 795 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
language: cpp
compiler: gcc
dist: trusty
before_install:
# C++14
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
- sudo apt-get update -qq
# Node JS
- curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
# Yarn
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
- echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
install:
# C++14
- sudo apt-get install -qq g++-6
- sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 90
# Node
- sudo apt-get install -y nodejs
# Yarn
- sudo apt-get update && sudo apt-get install yarn
# Deps
- yarn install
cache:
yarn: true
directories:
- node_modules
- .jest
script:
- yarn lint
- yarn jest
- yarn danger