forked from gatsbyjs/gatsby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
75 lines (72 loc) · 3.07 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
68
69
70
71
72
73
74
75
services:
- docker
os:
- linux
dist: trusty
# use container-based build env for faster boot
sudo: true
addons:
chrome: stable
language: node_js
matrix:
include:
- name: "Lint"
env: SRC_PATH=. INSTALL_COMMAND='install' TEST_COMMAND='lint'
node_js:
- 'lts/*'
- name: "Unit Tests on Node.js 6"
env: SRC_PATH=. INSTALL_COMMAND='run bootstrap' TEST_COMMAND=jest
node_js:
- '6'
- name: "Unit Tests on Node.js 8"
env: SRC_PATH=. INSTALL_COMMAND='run bootstrap' TEST_COMMAND=jest
node_js:
- '8'
- name: "Unit Tests on Node.js 10"
env: SRC_PATH=. INSTALL_COMMAND='run bootstrap' TEST_COMMAND=jest
node_js:
- '10'
- name: "Integration Tests"
env: SRC_PATH=. INSTALL_COMMAND='install' TEST_COMMAND='test:integration'
node_js:
- 'lts/*'
- name: "Develop UI Tests"
env: SRC_PATH='examples/gatsbygram' INTEGRATION_TEST=true INSTALL_COMMAND='install' TEST_COMMAND='test'
node_js:
- 'lts/*'
- name: "Production UI Tests"
env: SRC_PATH='integration-tests/production-runtime' INTEGRATION_TEST=true INSTALL_COMMAND='install' TEST_COMMAND='test'
node_js:
- 'lts/*'
- name: "Path Prefix Tests"
env: SRC_PATH='integration-tests/path-prefix' INTEGRATION_TEST=true INSTALL_COMMAND='install' TEST_COMMAND='test'
node_js:
- 'lts/*'
- name: "Gatsby Image Tests"
env: SRC_PATH='integration-tests/gatsby-image' INTEGRATION_TEST=true INSTALL_COMMAND='install' TEST_COMMAND='test'
node_js:
- 'lts/*'
cache:
yarn: true
before_install:
- 'cd $SRC_PATH'
install:
- 'yarn $INSTALL_COMMAND'
before_script:
- 'cd $TRAVIS_BUILD_DIR'
- './scripts/integration-test.sh $INTEGRATION_TEST $SRC_PATH'
- 'cd $SRC_PATH'
script:
- 'yarn $TEST_COMMAND'
# new pushes aren't working at the moment (the build times out processing showcase images)
# the existing image works fine, and can be manually updated by running through the steps
# in scripts/www-graphql-docker-push.sh
# - stage: www graphql docker image build and push
# if: (NOT type = pull_request) AND branch = master
# env:
# - DOCKER_USER=mikeallanson
# - secure: "oF3OuabOsUtqf1IIo/YQA/FzVzZOQFlNqGbnu7/KO5LugtMBkxDcrT9FA33LHn1kX2TsblOaMviY5ukTVIQIAFTcaqPmYzt8phCi3x6tugcT0bfYmTWIQZ/KsZFFufB8MiLFAgILpfhpooDPFhiRZMdv/NLlTPO50iAth6/WqfgMffvtU3xpWrqxLzvAJLw1Dgx0cDsw515FcMjy2QJHmwob3eb7/PTfd0qmpQlzrspvf7PxTfGd6mZDfXsaOnqHAH36oiXe5Hwhnfoz0oePeb7d36RY1/SUX7kYBhf/gWNcFMzERGGnFjbT5RtQPAViMjCpPuPI3RsytA1DdH/I/ykobQ0fx94Vr+R3xe4+gujYDkTRek6JvnS1gj2BxJ6J8rZHOJyI0WpGNORwkOwDla2KRuJZLWBaZ6MvDH+uWeRuEDZnSlqgNERWztLpCAjx8V+MdHbI/rG4OC2AanrgD3BabGm/YwBptfc0x+23ibSlez4LtJmozx6wOzYDXhqfvRk6pD4YhXc0XXUlwBqAymFszZY7yyDkdeN+2SgBBye+dSbDqS7X26r/tyT+0NrjQH+oUM5EeHL8mH2I5Tvwx3fgaK5d3Uuvaet49CROMKb+IcDnK5qZnaD3Oq6glDgAfINPXPT3ptVjQSCDenrUbRkNR3x3bgETCPRak4/x1nw=" # DOCKER_PASS
# before_install:
# - chmod +x scripts/www-graphql-docker-push.sh
# script:
# - travis_wait 30 ./scripts/www-graphql-docker-push.sh