forked from RedHatOfficial/RedHatOfficial.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (26 loc) · 849 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
language: node_js
node_js:
- "node"
dist: trusty
addons:
apt:
packages:
- jq
script:
# Test commands in package.json
- npm install babel-cli
- mkdir -p dist
- npm run-script babel
- npm run-script build
# Be sure that all provided URLs are valid
- set -e && for url in $(jq .[].projectWebsite app/data/projects.json | tr -d \"); do if [ "$url" != "null" ]; then echo "${url}"; curl "${url}" -o /dev/null --fail -L; fi; done
- set -e && for url in $(jq .[].projectRepository app/data/projects.json | tr -d \"); do if [ "$url" != "null" ]; then echo "${url}"; curl "${url}" -o /dev/null --fail -L; fi; done
deploy:
provider: pages
local-dir: dist
skip-cleanup: true
github-token: $GH_PAGES_TOKEN # Set in travis-ci.org dashboard, marked secure
keep-history: true
target-branch: master
on:
branch: dev