Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
aicrowd_JIGSAW_challenge
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AIcrowd
practice-challenges
aicrowd_JIGSAW_challenge
Commits
d3d8e665
Commit
d3d8e665
authored
Oct 06, 2020
by
ashivani
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added pipeline
parent
d5cb37e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
0 deletions
+61
-0
.gitlab-ci.yml
.gitlab-ci.yml
+61
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
d3d8e665
stages
:
-
rails-update
-
test-baseline
-
submit-baseline
.aicrowd-setup
:
&aicrowd-setup
image
:
python:3.8
before_script
:
-
git clone https://github.com/AIcrowd/aicrowd-cli.git && cd aicrowd-cli
-
pip install -r requirements.txt
-
python setup.py develop
-
cd ..
-
aicrowd evaluations login -e "${SUPER_USER_EMAIL}" -p "${SUPER_USER_PASSWORD}"
rails-update
:
stage
:
rails-update
image
:
python:3.8-slim
before_script
:
-
pip install pyyaml requests markdown
script
:
-
python utils.py
only
:
changes
:
-
README.md
test-baseline
:
stage
:
test-baseline
image
:
python:3.8
before_script
:
-
apt install curl
-
curl -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq && chmod +x /usr/local/bin/jq
-
pip install yq
-
pip install jupyter
script
:
-
export BASELINE=`yq -r .official_baseline aicrowd.yaml | awk -F. '{print $1}'`
-
jupyter nbconvert --to python baselines/${BASELINE}.ipynb
-
ipython baselines/${BASELINE}.py
artifacts
:
paths
:
-
submission.csv
only
:
changes
:
-
baselines/*
submit-baseline
:
stage
:
submit-baseline
<<
:
*aicrowd-setup
script
:
-
apt install curl
-
curl -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq && chmod +x /usr/local/bin/jq
-
pip install yq
-
export CHALLENGE_NAME=`yq -r .challenge_name aicrowd.yaml`
-
export EVALUATIONS_API_TOKEN=`yq -r .aicrowd_evaluations_token ~/.aicrowd/config.yaml`
-
export GRADER_ID=`curl -k -X GET "https://evaluations-api.internal.k8s.aicrowd.com/v1/graders/?name=${CHALLENGE_NAME}"
-H "accept:application/json"
-H "AUTHORIZATION:${EVALUATIONS_API_TOKEN}" | jq '.[length-1].id'`
-
aicrowd evaluations submission create --file ./submission.csv -g ${GRADER_ID} --wait
only
:
changes
:
-
baselines/*
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment