Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more travis #22

Merged
merged 7 commits into from
Jun 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 33 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,40 @@

# Ideally nobody should push PRs to the "origin" repo.
# Remove this once the repo is moved to the 'mdn' org.
branches:
only:
- master

language: node_js
node_js: stable

cache:
yarn: true
directories:
- client/node_modules
- server/node_modules
- cli/node_modules

# Because https://github.com/travis-ci/travis-ci/issues/9445
before_install:
- npm install -g yarn
- yarn --version
# All nodes of the matrix will
- make install

matrix:
include:
- name: client
cache: yarn
script:
- ./scripts/ci-client.sh
- name: end-to-end
cache: yarn
script:
- make build-content
# Commented out June 6 because at the moment 'make deployment-build' will fail
# - make deployment-build
- name: yarn-audit
cache: yarn
script:
- set -e
- cd client && yarn run test
- cd client && yarn run build
- make yarn-audit-all
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# mdn2

[![Build Status](https://travis-ci.org/peterbe/mdn2.svg?branch=master)](https://travis-ci.org/peterbe/mdn2)

**THIS IS HIGHLY EXPERIMENTAL AND LIKELY TO CHANGE DRASTICALLY**

## Overview
Expand Down
11 changes: 11 additions & 0 deletions scripts/ci-client.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set -ex

# If you run this locally, the jest test runner will
# start in interactive mode. To make it like in CI
# execute this script like `CI=true ./scripts/ci-client.sh

cd client
yarn
yarn run test
yarn run build