ci: Actually do something
This commit is contained in:
parent
799e804dab
commit
d74b7397c6
1 changed files with 7 additions and 6 deletions
|
|
@ -27,8 +27,9 @@ build-job: # This job runs in the build stage, which runs first.
|
|||
- ghc822
|
||||
- linux
|
||||
script:
|
||||
- echo "Compiling the code..."
|
||||
- echo "Compile complete."
|
||||
- make release
|
||||
artifacts:
|
||||
- build/dist/*.tar.gz
|
||||
|
||||
unit-test-job: # This job runs in the test stage.
|
||||
stage: test # It only starts when the job in the build stage completes successfully.
|
||||
|
|
@ -46,9 +47,10 @@ lint-test-job: # This job also runs in the test stage.
|
|||
- ghc822
|
||||
- linux
|
||||
script:
|
||||
- echo "Linting code... This will take about 10 seconds."
|
||||
- sleep 10
|
||||
- echo "No lint issues found."
|
||||
- make lint
|
||||
artifacts:
|
||||
reports:
|
||||
codequality: build/ci/hlint.report.json
|
||||
|
||||
deploy-job: # This job runs in the deploy stage.
|
||||
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
||||
|
|
@ -57,4 +59,3 @@ deploy-job: # This job runs in the deploy stage.
|
|||
environment: production
|
||||
script:
|
||||
- echo "Deploying application..."
|
||||
- echo "Application successfully deployed."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue