-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
47 lines (46 loc) · 1.2 KB
/
.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
38
39
40
41
42
43
44
45
46
47
language: php
php: '7.1'
sudo: false
cache: yarn
branches:
only:
- master
env:
- NODE_JS_VERSION=9.5.0
addons:
mariadb: '10.2'
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: 'deb https://dl.yarnpkg.com/debian/ stable main'
key_url: 'https://dl.yarnpkg.com/debian/pubkey.gpg'
packages:
- yarn
- g++-4.8
cache:
directories:
- "$HOME/.nvm"
- node_modules
- api/vendor
before_install:
- export CXX=g++
- export CC=gcc
- if [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX=g++-4.8; fi
- mysql -e 'CREATE DATABASE memberhive;'
- phpenv config-rm xdebug.ini
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' ]] ; then pecl channel-update pecl.php.net; fi;
- curl -o ~/.nvm/nvm.sh https://raw.githubusercontent.com/creationix/nvm/v0.33.6/nvm.sh
- bash -c "source ~/.nvm/nvm.sh; nvm install $NODE_JS_VERSION; node --version"
- nvm use $NODE_JS_VERSION
- nvm alias default $NODE_JS_VERSION
- yarn global add @angular/cli@latest @nrwl/schematics
- echo -e "Host *\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- npm set progress=false
before_script:
- export NODE_ENV="travis"
- yarn
script:
- yarn build
- yarn lint
after_success:
- ls dist/