Skip to content

Commit

Permalink
fix circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterTea committed Jul 30, 2020
1 parent 3a5b775 commit c2d86c7
Showing 1 changed file with 147 additions and 147 deletions.
294 changes: 147 additions & 147 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,150 +1,150 @@
version: 2
jobs:
connect_to_initial_version:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ openssh-server
- checkout
- run:
name: Set up ssh & known_hosts
command: /etc/init.d/ssh start; rm -f ~/.ssh/id_rsa*; ssh-keygen -q -N "" -f ~/.ssh/id_rsa; cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys; rm -f ~/.ssh/known_hosts; ssh -o "StrictHostKeyChecking no" localhost ls
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the root version of the project
command: mkdir ../root_version; cp -Rf .git * ../root_version/; cd ../root_version; git checkout v6; mkdir build; cd build; cmake ../; make -j4
- run:
name: Build the project
command: mkdir build; cd build; cmake ../; make -j4
- run:
name: Connect new -> old
command: ../root_version/build/etserver --daemon; cp ../root_version/build/etterminal /usr/bin/etterminal; sleep 1; build/et -c "ls" localhost --logtostdout --verbose=9
- run:
name: Kill server
command: pkill etserver
- run:
name: Connect old -> new
command: export TERM=xterm-256color; build/etserver --daemon; cp build/etterminal /usr/bin/etterminal; sleep 1; ../root_version/build/et -c "ls" localhost --logtostdout --verbose=9
- run:
name: Kill server
command: pkill etserver
linux_msan:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
- checkout
- run:
name: Init submodules
command: git submodule update --init
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_MEMORY=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
linux_asan:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
- checkout
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_ADDRESS=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
linux_tsan:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
- checkout
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_THREAD=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
linux_ubsan:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
- checkout
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_UNDEFINED=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
mac_tsan:
macos:
xcode: "10.2.1"
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: brew remove python@2; brew upgrade python; brew install cmake; brew install protobuf libsodium gflags
- checkout
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_THREAD=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
connect_to_initial_version:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++ openssh-server
- checkout
- run:
name: Set up ssh & known_hosts
command: /etc/init.d/ssh start; rm -f ~/.ssh/id_rsa*; ssh-keygen -q -N "" -f ~/.ssh/id_rsa; cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys; rm -f ~/.ssh/known_hosts; ssh -o "StrictHostKeyChecking no" localhost ls
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the root version of the project
command: mkdir ../root_version; cp -Rf .git * ../root_version/; cd ../root_version; git checkout v6; mkdir build; cd build; cmake ../; make -j4
- run:
name: Build the project
command: mkdir build; cd build; cmake ../; make -j4
- run:
name: Connect new -> old
command: ../root_version/build/etserver --daemon; cp ../root_version/build/etterminal /usr/bin/etterminal; sleep 1; build/et -c "ls" localhost --logtostdout --verbose=9
- run:
name: Kill server
command: pkill etserver
- run:
name: Connect old -> new
command: export TERM=xterm-256color; build/etserver --daemon; cp build/etterminal /usr/bin/etterminal; sleep 1; ../root_version/build/et -c "ls" localhost --logtostdout --verbose=9
- run:
name: Kill server
command: pkill etserver
linux_msan:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
- checkout
- run:
name: Init submodules
command: git submodule update --init
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_MEMORY=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
linux_asan:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
- checkout
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_ADDRESS=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
linux_tsan:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
- checkout
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_THREAD=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
linux_ubsan:
docker:
- image: ubuntu:bionic
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: apt-get update; apt-get install -y git cmake protobuf-compiler libsodium-dev libgflags-dev libprotobuf-dev libutempter-dev g++
- checkout
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_UNDEFINED=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
mac_tsan:
macos:
xcode: "10.2.1"
steps:
- run:
name: Avoid hosts unknown for github
command: mkdir -p ~/.ssh/ && echo -e "Host github.com\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config
- run:
name: Install system dependencies
command: brew remove python@2; brew upgrade python; brew install cmake; brew install protobuf libsodium gflags
- checkout
- run:
name: Init submodules
command: if [ $CIRCLE_BRANCH != "release" ]; then git submodule update --init; fi
- run:
name: Build the project with test
command: mkdir build; cd build; cmake -DSANITIZE_THREAD=ON ../; make -j4
- run:
name: Run tests
command: cd build; ./et-test
workflows:
version: 2
build_and_test:
jobs:
- linux_asan
- linux_tsan
- linux_ubsan
- mac_tsan
- connect_to_initial_version:
branches:
ignore:
- release

version: 2
build_and_test:
jobs:
- linux_asan
- linux_tsan
- linux_ubsan
- mac_tsan
- connect_to_initial_version:
filters:
branches:
ignore:
- release

0 comments on commit c2d86c7

Please sign in to comment.