forked from linagora/esn-dav-import-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! linagora/esn#29 Setup CI linagora/esn#29 Setup CI
- Loading branch information
bspham
committed
Sep 4, 2020
1 parent
efdb044
commit 0f4a7b2
Showing
2 changed files
with
40 additions
and
0 deletions.
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,37 @@ | ||
pipeline { | ||
|
||
agent { | ||
dockerfile { | ||
filename 'Dockerfile' | ||
dir 'test' | ||
} | ||
} | ||
|
||
stages { | ||
stage('Install packages') { | ||
steps { | ||
sh 'npm install' | ||
} | ||
} | ||
|
||
stage('Run tests') { | ||
steps { | ||
sh 'npm run test' | ||
} | ||
} | ||
|
||
stage('Deliver Docker images') { | ||
when { branch 'main' } | ||
steps { | ||
echo "Delivery" | ||
} | ||
} | ||
|
||
stage('Deploy new version') { | ||
when { branch 'main' } | ||
steps { | ||
echo "Deploy" | ||
} | ||
} | ||
} | ||
} |
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,3 @@ | ||
FROM node:10-buster | ||
|
||
RUN apt-get update |