Skip to content

Commit 1dc1a06

Browse files
authored
chore: publish new versions of the E2E site after each merge in develop (#70)
* chore: deploy to gh-pages * chore: add build to test script, build on deploy * chore: add updated branch * chore: attempt at fixing build * chore: publish only from develop branch * chore: remove gitignore
1 parent 739b021 commit 1dc1a06

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,21 @@ node_js:
55
before_script:
66
- yarn lint
77

8+
script:
9+
- yarn build
10+
- yarn test
11+
812
cache:
913
yarn: true
14+
15+
before_deploy:
16+
- yarn e2e-build
17+
18+
deploy:
19+
provider: pages
20+
skip_cleanup: true
21+
github_token: $GH_TOKEN
22+
keep_history: true
23+
local_dir: test/e2e/
24+
on:
25+
branch: develop

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"clean": "grunt clean",
55
"lint": "yarn eslint 'src/**/*.{ts,tsx}'",
66
"start": "grunt",
7-
"e2e-build": "cp dist/{leanplum,sw/sw}.min.js test/e2e/",
7+
"e2e-build": "cp ./dist/leanplum.min.js ./test/e2e/ && cp ./dist/sw/sw.min.js ./test/e2e/",
88
"e2e-serve": "yarn run e2e-build && http-server test/e2e -p 8989 -a localhost",
99
"e2e-deploy": "yarn run e2e-build && now deploy test/e2e",
1010
"test": "jest"

test/e2e/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)