-
Notifications
You must be signed in to change notification settings - Fork 185
/
Copy path.travis.yml
93 lines (93 loc) · 3.19 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
esudo: false
branches:
only:
- develop
language: node_js
node_js:
- '16'
cache: false
# directories:
# - node_modules
# - readium-shared-js/node_modules
# - readium-shared-js/readium-js/node_modules
before_install:
- npm -g install npm@latest
- git submodule update --init --recursive
#
# READIUM JS VIEWER
#
#- git fetch --all
#- for remote in `git branch -r | grep -v \> | grep -v master`; do git branch --track ${remote#origin/} $remote; done
- git branch -avv
- git remote -v
- git show-ref --heads
- git show-ref --head --hash head
- git branch -a --contains $(git rev-parse HEAD)
- git for-each-ref --format="%(refname:short) %(objectname)" 'refs/heads/' | grep $(git rev-parse HEAD) | cut -d " " -f 1
- git checkout `git for-each-ref --format="%(refname:short) %(objectname)" 'refs/heads/' | grep $(git rev-parse HEAD) | cut -d " " -f 1 | head -n1`
- git branch -avv
#
# READIUM JS
#
- cd readium-js
#
#- git fetch --all
- for remote in `git branch -r | grep -v \> | grep -v master`; do git branch --track ${remote#origin/} $remote; done
- git branch -avv
- git remote -v
- git show-ref --heads
- git show-ref --head --hash head
- git branch -a --contains $(git rev-parse HEAD)
- git for-each-ref --format="%(refname:short) %(objectname)" 'refs/heads/' | grep $(git rev-parse HEAD) | cut -d " " -f 1
- git checkout `git for-each-ref --format="%(refname:short) %(objectname)" 'refs/heads/' | grep $(git rev-parse HEAD) | cut -d " " -f 1 | head -n1`
- git branch -avv
#
# READIUM SHARED JS
#
- cd readium-shared-js
#
#- git fetch --all
- for remote in `git branch -r | grep -v \> | grep -v master`; do git branch --track ${remote#origin/} $remote; done
- git branch -avv
- git remote -v
- git show-ref --heads
- git show-ref --head --hash head
- git branch -a --contains $(git rev-parse HEAD)
- git for-each-ref --format="%(refname:short) %(objectname)" 'refs/heads/' | grep $(git rev-parse HEAD) | cut -d " " -f 1
- git checkout `git for-each-ref --format="%(refname:short) %(objectname)" 'refs/heads/' | grep $(git rev-parse HEAD) | cut -d " " -f 1 | head -n1`
- git branch -avv
- echo "plugins:['hypothesis']" > plugins/plugins.cson
- cat plugins/plugins.cson
- cd ../../
install:
- npm run prepare:all
before_script:
- pwd
script:
- pwd
- git status
- npm run pretest:travis
- git status
- cd readium-js
- git status
- cd readium-shared-js
- git status
- cd ../../
- cat build-output/version.json
after_success:
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ ${MODE} = "firefox" ] && npm install surge && echo "epub_content" > ./dist/cloud-reader/.surgeignore && surge --project ./dist/cloud-reader --domain readium.surge.sh'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ ${MODE} = "firefox" ] && npm install firebase-tools && firebase deploy --non-interactive --token "$FIREBASE_TOKEN" --project "project-1351855251145549090"'
- '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ ${MODE} = "chromeApp" ] && node build-config/deployCrx.js'
after_failure: cat ./sauce_connect.log
env:
global:
- SAUCE_USERNAME=readium
- SAUCE_ACCESS_KEY=a36ebc10-e514-4da6-924c-307aec513550
- USE_SAUCE=true
matrix:
- MODE=chromeApp
- MODE=firefox
addons:
sauce_connect:
username: readium
access_key: a36ebc10-e514-4da6-924c-307aec513550