forked from w3c/aria-practices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (28 loc) · 816 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
29
30
31
32
33
34
35
36
language: node_js
node_js:
- "node"
env:
global:
- GH_REF: github.com/w3c/aria-practices.git
git:
depth: 3
branches:
only:
master
install:
- npm install && npm test
before_script:
- git config --global user.email "[email protected]"
- git config --global user.name "michael-n-cooper"
script:
- cd ../..
- mkdir gh-pages
- cd gh-pages
- git clone --depth=1 --branch=gh-pages https://github.com/w3c/aria-practices.git
- cd aria-practices
- curl "https://labs.w3.org/spec-generator/?type=respec&url=https://rawgit.com/w3c/aria-practices/master/aria-practices.html" -o index.html -f --retry 3
- cp -r ../../w3c/aria-practices/examples .
after_success:
- git add .
- git commit -m "Generated by TRAVIS-CI"
- git push "https://${GH_TOKEN}@${GH_REF}" gh-pages > /dev/null 2>&1