Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

circle_tox.sh 440 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  1. #!/bin/sh
  2. pyenvs="py27 py35 py36"
  3. # reduce to the set we need for this circle node, and interpserse with ","
  4. pyenvs=$(echo $pyenvs \
  5. | tr " " "\n" \
  6. | awk "NR % ${CIRCLE_NODE_TOTAL} == ${CIRCLE_NODE_INDEX}" \
  7. | tr "\n" ",")
  8. # trim trailing ","
  9. TOXENV=${pyenvs%?}
  10. echo "CIRCLE_NODE_INDEX: " $CIRCLE_NODE_INDEX
  11. echo "CIRCLE_NODE_TOTAL: " $CIRCLE_NODE_TOTAL
  12. echo "TOXENV: " $TOXENV
  13. export TOXENV
  14. tox -v --recreate
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...