-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
67 lines (56 loc) · 1.31 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
language: php
php:
- 7.4.7
services:
- docker
notifications:
email:
on_success: never
on_failure: change
cache:
yarn: true
directories:
- $HOME/.composer/cache
- $HOME/.jest-cache
- $HOME/.npm
- $HOME/.nvm/.cache
- $HOME/.cache/yarn
- $HOME/.yarn-cache
branches:
only:
- master
env:
global:
- WP_DEVELOP_DIR=./wordpress
- LOCAL_SCRIPT_DEBUG=false
- INSTALL_WORDPRESS=true
# Make sure NodeGit gets the correct C libs.
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++-4.9-dev
before_install:
- nvm install --latest-npm
- |
if [[ "$INSTALL_WORDPRESS" = "true" ]]; then
# Upgrade docker-compose
sudo rm /usr/local/bin/docker-compose
curl -sL https://github.com/docker/compose/releases/download/1.26.0/docker-compose-`uname -s`-`uname -m` > docker-compose
chmod +x docker-compose
sudo mv docker-compose /usr/local/bin
fi
# - yarn install
install:
# Build Easy Custom Sidebars.
- yarn setup
jobs:
include:
- name: JavaScript Unit Tests
env: INSTALL_WORDPRESS=false
script:
- yarn test-unit-js -- --ci --maxWorkers=2 --cacheDirectory="$HOME/.jest-cache"
- name: PHP Unit Tests
script:
- yarn test-unit-php && yarn test-unit-php-multisite