-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
702b600
commit 905fac7
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
version: v1.0 | ||
name: Cypress example | ||
agent: | ||
machine: | ||
type: e1-standard-2 | ||
os_image: ubuntu1804 | ||
blocks: | ||
- name: Build Dependencies | ||
dependencies: [] | ||
task: | ||
jobs: | ||
- name: NPM | ||
commands: | ||
- sem-version node 12 | ||
- checkout | ||
- cache restore node-modules-$(checksum package-lock.json),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules | ||
- cache restore cache-$(checksum package-lock.json),cache-$SEMAPHORE_GIT_BRANCH,cache | ||
- npm ci | ||
- cache store node-modules-$(checksum package-lock.json) node_modules | ||
- cache store cache-$(checksum package-lock.json) ~/.cache | ||
- name: Tests | ||
dependencies: ['Build Dependencies'] | ||
task: | ||
prologue: | ||
commands: | ||
- sem-version node 12 | ||
- checkout | ||
- cache restore node-modules-$SEMAPHORE_GIT_BRANCH-$(checksum package-lock.json),node-modules-$SEMAPHORE_GIT_BRANCH,node-modules | ||
jobs: | ||
- name: Cypress | ||
commands: | ||
- export CYPRESS_baseUrl="http://$(ip route | grep -E '(default|docker0)' | grep -Eo '([0-9]+\.){3}[0-9]+' | tail -1):5000" | ||
- npm run test:ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters